set global config
This commit is contained in:
1 parent
69c20e807e
commit
a9ad429d59
1 file changed
+2
Vendored
+2
@@ -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"'
|
||||
|
||||
Reference in new issue
Block a user