Revert "修复预览部署可选提交参数"
Project CI / Repository checks (push) Successful in 1m2s
Project CI / Frontend tests (push) Successful in 3m46s
Project CI / Backend tests (push) Successful in 4m22s
Project CI / Native shell tests (push) Failing after 13m9s

This reverts commit d2366bc40a.
This commit is contained in:
2026-08-15 18:09:04 +08:00
parent 5e7ff450b6
commit 7cd8b39593
4 changed files with 3 additions and 40 deletions
-25
View File
@@ -55,31 +55,6 @@ assertIncludes(
"string(name: 'DEPLOYMENT_ID'",
'Jenkins 必须暴露 DEPLOYMENT_ID。',
);
assertIncludes(
jenkinsfile,
'SOURCE_BRANCH="${SOURCE_BRANCH:-}"',
'Jenkins 目标源码 checkout 必须兼容旧构建缺少 SOURCE_BRANCH 环境变量。',
);
assertIncludes(
jenkinsfile,
'COMMIT_HASH="${COMMIT_HASH:-}"',
'Jenkins 目标源码 checkout 必须兼容可选 COMMIT_HASH 未物化。',
);
assertIncludes(
jenkinsfile,
'GIT_REMOTE_URL="${GIT_REMOTE_URL:-}"',
'Jenkins 目标源码 checkout 必须在严格 shell 下安全读取固定 Git 地址。',
);
assertExcludes(
jenkinsfile,
'COMMIT_HASH="${COMMIT_HASH}"',
'Jenkins 不得在 set -u 下严格展开可选 COMMIT_HASH。',
);
assertIncludes(
jenkinsfile,
`if [ "${'${ACTION}'}" = 'DEPLOY' ] && [ -z "${'${SOURCE_BRANCH}'}" ]; then`,
'Jenkins DEPLOY 缺少 SOURCE_BRANCH 时必须失败关闭。',
);
assertIncludes(
jenkinsfile,
"archiveArtifacts artifacts: 'preview-result.json'",