update Jenkinsfile
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user