fix(ci): run deploy stage under bash for pipefail support
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user