Handle empty commit hash in Jenkins checkout

This commit is contained in:
2026-05-02 20:01:35 +08:00
parent 0c9e58b75a
commit 64fda2a677
10 changed files with 20 additions and 20 deletions

View File

@@ -92,8 +92,8 @@ pipeline {
bash -lc '
set -euo pipefail
chmod +x scripts/jenkins-checkout-source.sh
SOURCE_BRANCH="${SOURCE_BRANCH}" \
COMMIT_HASH="${COMMIT_HASH}" \
SOURCE_BRANCH="${SOURCE_BRANCH:-master}" \
COMMIT_HASH="${COMMIT_HASH:-}" \
GIT_REMOTE_URL="${GIT_REMOTE_URL}" \
SOURCE_COMMIT_FILE=".jenkins-source-commit" \
scripts/jenkins-checkout-source.sh