From 0816d2e326a29b5d28800e7f67fb9db17971dca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8E=86=E5=86=B0=E9=83=81-hermes=E7=89=88?= Date: Thu, 7 May 2026 14:52:18 +0800 Subject: [PATCH] ci: quote server provision bash heredocs --- jenkins/Jenkinsfile.production-server-provision | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jenkins/Jenkinsfile.production-server-provision b/jenkins/Jenkinsfile.production-server-provision index 631bcc30..4936e01d 100644 --- a/jenkins/Jenkinsfile.production-server-provision +++ b/jenkins/Jenkinsfile.production-server-provision @@ -77,7 +77,7 @@ pipeline { userRemoteConfigs: [[url: "${GIT_REMOTE_URL}"]], ]) sh ''' - bash -lc ' + bash <<'BASH' set -euo pipefail chmod +x scripts/jenkins-checkout-source.sh SOURCE_BRANCH="${SOURCE_BRANCH:-master}" \ @@ -85,7 +85,7 @@ pipeline { GIT_REMOTE_URL="${GIT_REMOTE_URL}" \ SOURCE_COMMIT_FILE=".jenkins-source-commit" \ scripts/jenkins-checkout-source.sh - ' +BASH ''' } } @@ -96,7 +96,7 @@ pipeline { } steps { sh ''' - bash -lc ' + bash <<'BASH' set -euo pipefail require_path() { @@ -624,7 +624,7 @@ pipeline { fi echo "[server-provision] 完成。若是首次初始化,请补齐 ${API_ENV_FILE} 的真实密钥后再启动 api-server。" - ' +BASH ''' } }