cleanup git push from Jenkinn

This commit is contained in:
Nana Janashia
2020-11-29 08:49:01 +01:00
parent 96a0f80bec
commit ad517593dd

7
Jenkinsfile vendored
View File

@@ -50,13 +50,6 @@ 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 status'
sh 'git branch'
sh 'git config --list'
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"'