Skip to content

Commit

Permalink
Move setCronTrigger after the first checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Jun 12, 2017
1 parent 7522b9c commit 50e646c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ selectNodes {
}

dockerBuild {
//rebuild every nights
setCronTrigger('H H(0-8) * * *')

// make sure we don't mess with another build by using latest on both
env.DOCKER_TAG = env.BUILD_TAG

stage('Update docker') {
checkout scm
sh 'make pull'
}

//rebuild every nights
setCronTrigger('H H(0-8) * * *')

stage('Build') {
checkout scm
sh 'make -j3 clean build'
Expand Down

0 comments on commit 50e646c

Please sign in to comment.