set global config

This commit is contained in:
Nana Janashia
2020-12-05 15:25:21 +01:00
parent 69c20e807e
commit a9ad429d59

2
Jenkinsfile vendored
View File

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