From ba85afaa0ecd9eff7ac8b9dff29e886210193862 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Tue, 18 Feb 2025 03:25:33 +0800 Subject: [PATCH] fix(argo): invalid env ref for ArgoApplicationVersionUpdater Signed-off-by: zhenyus --- .../com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy index 3251753e..dde071c9 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy @@ -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"