From c638fe102baf27dcf554a1a83c6d79e924d73b69 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 31 Mar 2023 17:31:44 +0200 Subject: [PATCH] chore(jenkins): use global git config for credentials --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3797724..cac8134 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,8 +21,9 @@ pipeline { ]) ]) { sh ''' - git config credential.https://forge.cadoles.com.username "$GIT_USERNAME" - git config credential.https://forge.cadoles.com.helper '!f() { test "$1" = get && echo "password=$GIT_PASSWORD"; }; f' + git config --global credential.https://forge.cadoles.com.username "$GIT_USERNAME" + git config --global credential.https://forge.cadoles.com.helper '!f() { test "$1" = get && echo "password=$GIT_PASSWORD"; }; f' + export GOPRIVATE=forge.cadoles.com/arcad/edge make test '''