From ab27e57e66359ce700d71bfd5598c4918eca717b Mon Sep 17 00:00:00 2001 From: robbond Date: Fri, 6 Mar 2026 15:53:52 +0000 Subject: [PATCH] fix(ci): run pipeline shell steps using bash to support pipefail --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e60fa69..680a698 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -78,6 +78,7 @@ pipeline { keyFileVariable: 'SSH_KEY' )]) { sh ''' +bash -eo pipefail << 'EOF' set -euo pipefail rsync -az \ @@ -93,6 +94,7 @@ pipeline { "cd $DEPLOY_PATH && chmod +x ./scripts/deploy-prod.sh ./scripts/smoke-check.sh ./scripts/rollback-prod.sh" ssh -i $SSH_KEY $APP_USER@$APP_HOST "cd $DEPLOY_PATH && ./scripts/deploy-prod.sh" +EOF ''' } } @@ -100,7 +102,13 @@ pipeline { stage('Smoke check') { steps { - sh 'chmod +x scripts/smoke-check.sh && scripts/smoke-check.sh ${APP_BASE_URL}' + sh ''' +bash -eo pipefail << EOF +set -euo pipefail +chmod +x scripts/smoke-check.sh +scripts/smoke-check.sh "${APP_BASE_URL}" +EOF +''' } } } -- 2.39.5