set git configs

This commit is contained in:
Nana Janashia
2020-12-05 15:37:04 +01:00
parent ec07045f5b
commit 86b41c173d

4
Jenkinsfile vendored
View File

@@ -57,8 +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 user.email "jenkins@example.com"'
sh 'git config --global user.name "Jenkins"' sh 'git config 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"'