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:
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