ci: quote server provision bash heredocs
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-07 14:52:18 +08:00
parent dcd5201bb3
commit 0816d2e326

View File

@@ -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
'''
}
}