From 86b41c173d57d52c2151ef9b4c4783fa1ced4af9 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 5 Dec 2020 15:37:04 +0100 Subject: [PATCH] set git configs --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f9dfc7..a4596c0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,8 +57,8 @@ pipeline { steps { script { withCredentials([usernamePassword(credentialsId: 'gitlab-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) { - sh 'git config --global user.email "jenkins@example.com"' - sh 'git config --global user.name "Jenkins"' + sh 'git config user.email "jenkins@example.com"' + sh 'git config user.name "Jenkins"' sh "git remote set-url origin https://${USER}:${PASS}@gitlab.com/nanuchi/java-maven-app.git" sh 'git add .' sh 'git commit -m "ci: version bump"'