fix: jenkinsfile replace invalid # with Groovy replace() for manifest push

This commit is contained in:
adelyaou 2025-10-22 09:48:11 +07:00
parent fb9a3eed97
commit 95ad1c24df
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -102,7 +102,7 @@ pipeline {
git config user.email "jenkins@local"
git config user.name "jenkins"
git add -A
git diff --staged --quiet || (git commit -m "chore: update image to ${env.IMAGE_TAG_FINAL}" && git push https://${GIT_USER}:${GIT_PASS}@${env.MANIFEST_REPO#https://} ${env.BRANCH})
git diff --staged --quiet || (git commit -m "chore: update image to ${env.IMAGE_TAG_FINAL}" && git push https://${GIT_USER}:${GIT_PASS}@${env.MANIFEST_REPO.replace('https://', '')} ${env.BRANCH})
"""
echo "Manifest repo updated successfully"
}