fix: jenkinsfile replace invalid # with Groovy replace() for manifest push
This commit is contained in:
parent
fb9a3eed97
commit
95ad1c24df
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue