Skip to content

Commit

Permalink
Bump timeout to 40 minutes
Browse files Browse the repository at this point in the history
Now we build more variants, we need a bit more time.
  • Loading branch information
batmat committed Dec 6, 2018
1 parent 8212e0b commit 46d21fc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ properties([
pipelineTriggers([cron('H H/6 * * *')]),
])

timeout(20) {

node('docker') {
nodeWithTimeout('docker') {
deleteDir()

stage('Checkout') {
Expand Down Expand Up @@ -60,4 +58,10 @@ node('docker') {
}
}

}
void nodeWithTimeout(String label, def body) {
timeout(time: 40, unit: 'MINUTES') {
node(label) {
body.call()
}
}
}

0 comments on commit 46d21fc

Please sign in to comment.