Merge pull request 'fix(ci): run deploy stage under bash for pipefail support' (#52) from fix/cl9-deploy-stage-bash-wrapper into master

Reviewed-on: http://gitea.lan:3000/robbond/pleskSaas/pulls/52
This commit was merged in pull request #52.
This commit is contained in:
2026-03-07 08:52:04 +00:00

2
Jenkinsfile vendored
View File

@@ -90,6 +90,7 @@ stage('Deploy') {
keyFileVariable: 'SSH_KEY' keyFileVariable: 'SSH_KEY'
)]) { )]) {
sh ''' sh '''
bash <<EOF
set -euxo pipefail set -euxo pipefail
echo "Deploying image tag: ${IMAGE_BUILD}" echo "Deploying image tag: ${IMAGE_BUILD}"
@@ -135,6 +136,7 @@ ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" \
echo "Printing final running container image metadata" echo "Printing final running container image metadata"
ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" "docker inspect plesk-agency-portal --format='{{.Image}} {{.Created}}'" ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" "docker inspect plesk-agency-portal --format='{{.Image}} {{.Created}}'"
EOF
''' '''
} }
} }