update Jenkinsfile

This commit is contained in:
12WW1160
2020-12-01 18:03:55 +01:00
parent dfe84de0d3
commit 27589a055a

6
Jenkinsfile vendored
View File

@@ -20,12 +20,12 @@ pipeline {
stages { stages {
stage('pulling production') { stage('pulling master') {
steps { steps {
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
sh '''git config user.name "Jenkins Server" sh '''git config user.name "Jenkins Server"
git config user.email jenkins@confdroid.com git config user.email jenkins@confdroid.com
git pull origin production git pull origin master
git checkout -b jenkins ''' git checkout -b jenkins '''
} }
} }
@@ -91,7 +91,7 @@ pipeline {
sh '''git config user.name "Jenkins Server" sh '''git config user.name "Jenkins Server"
git config user.email jenkins@confdroid.com git config user.email jenkins@confdroid.com
echo `git add -A && git commit -am "recommit for updates in build $BUILD_NUMBER"` echo `git add -A && git commit -am "recommit for updates in build $BUILD_NUMBER"`
git push origin HEAD:production''' git push origin HEAD:master'''
} }
} }
} }