fix(argo): invalid env ref for ArgoApplicationVersionUpdater

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-18 03:25:33 +08:00
parent 68de66857c
commit ba85afaa0e

View File

@ -31,7 +31,9 @@ class ArgoApplicationVersionUpdater {
steps.withCredentials([steps.usernamePassword(credentialsId: 'freeleaps-ops-credentials', passwordVariable: 'OPS_GIT_PASSWORD', usernameVariable: 'OPS_GIT_USERNAME')]) {
steps.sh """
echo "Install required tools for git..."
apt-get -y update && apt-get install -y --no-install-recommends git apt-transport-https ca-certificates curl wget gnupg
apt-get -y update && apt-get install -y --no-install-recommends git apt-transport-https ca-certificates gnupg
echo "Set ${workspace} as a safe directory..."
git config --global --add safe.directory ${workspace}
echo "Configure git user..."
git config user.name "freeleaps-gitops-bot"
git config user.email "gitops@mathmast.com"