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"