set global config
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -57,6 +57,8 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withCredentials([usernamePassword(credentialsId: 'gitlab-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
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 remote set-url origin https://${USER}:${PASS}@gitlab.com/nanuchi/java-maven-app.git"
|
||||||
sh 'git add .'
|
sh 'git add .'
|
||||||
sh 'git commit -m "ci: version bump"'
|
sh 'git commit -m "ci: version bump"'
|
||||||
|
|||||||
Reference in New Issue
Block a user