fix(ci): run deploy stage under bash for pipefail support #52

Merged
robbond merged 1 commits from fix/cl9-deploy-stage-bash-wrapper into master 2026-03-07 08:52:04 +00:00
Showing only changes of commit 3701db4470 - Show all commits

2
Jenkinsfile vendored
View File

@@ -90,6 +90,7 @@ stage('Deploy') {
keyFileVariable: 'SSH_KEY'
)]) {
sh '''
bash <<EOF
set -euxo pipefail
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"
ssh -i "$SSH_KEY" "$APP_USER@$APP_HOST" "docker inspect plesk-agency-portal --format='{{.Image}} {{.Created}}'"
EOF
'''
}
}