From a9ad429d592c82c9ad1c48e5c183949aac803cd8 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 5 Dec 2020 15:25:21 +0100 Subject: [PATCH] set global config --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 718496a..5f9dfc7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,6 +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 remote set-url origin https://${USER}:${PASS}@gitlab.com/nanuchi/java-maven-app.git" sh 'git add .' sh 'git commit -m "ci: version bump"'