fix(ci): update Jenkinsfile to use GIT_CREDENTIALS for remote origin

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2024-12-30 18:14:56 +08:00
parent d25ec93e77
commit ed9254bbba

View File

@ -124,7 +124,7 @@ pipeline {
sh """
git config user.name "zhenyus"
git config user.email "zhenyus@mathmast.com"
git remote add ci_origin https://freeleaps@dev.azure.com/freeleaps/freeleaps-ops/_git/freeleaps-ops
git remote add ci_origin https://zhenyus:${GIT_CREDENTIALS}@dev.azure.com/freeleaps/freeleaps-ops/_git/freeleaps-ops
git add ${valuesFile}
git commit -m "ci(bot-auto-bump): bump ${APP_NAME} image tags for alpha to ${TAG_PREFIX}-${env.COMMIT_HASH}-linux-amd64"
git push ci_origin HEAD:master