Update Jenkinsfile

This commit is contained in:
Nana Janashia
2021-01-02 09:20:17 +00:00
parent a00620713a
commit 8400daafc4

View File

@@ -51,6 +51,9 @@ pipeline {
script {
withCredentials([usernamePassword(credentialsId: 'gitlab-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
// git config here for the first time run
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"'