chore(jenkins): use global git config for credentials
Some checks reported errors
arcad/emissary/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
wpetit 2023-03-31 17:31:44 +02:00
parent 273265c3ef
commit c638fe102b

5
Jenkinsfile vendored
View File

@ -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
'''