feat: update Git repository URL in ArgoApplicationVersionUpdater

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-05-29 16:39:21 +08:00
parent c8b68afc75
commit 18275ba9d2

View File

@ -16,7 +16,7 @@ class ArgoApplicationVersionUpdater {
steps.log.info("ArgoApplicationVersionUpdater", "[${environmentSlug}] Pull freeleaps-ops repository to workspace...")
steps.dir("${workspace}") {
steps.git branch: 'master', credentialsId: 'freeleaps-ops-credentials', url: 'https://freeleaps@dev.azure.com/freeleaps/freeleaps-ops/_git/freeleaps-ops'
steps.git branch: 'master', credentialsId: 'freeleaps-ops-credentials', url: 'https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops.git'
}
steps.dir("${workspace}") {
@ -41,7 +41,7 @@ class ArgoApplicationVersionUpdater {
git config user.email "gitops@mathmast.com"
echo "Add and commit changes..."
git remote add ci_origin https://${steps.env.OPS_GIT_USERNAME}:${steps.env.OPS_GIT_PASSWORD}@dev.azure.com/freeleaps/freeleaps-ops/_git/freeleaps-ops
git remote add ci_origin https://${steps.env.OPS_GIT_USERNAME}:${steps.env.OPS_GIT_PASSWORD}@gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops.git
git add ${valuesFile}