summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorAndor Molnar <andor@apache.org>2020-07-24 13:27:39 +0200
committerEnrico Olivelli <eolivelli@apache.org>2020-07-24 13:27:39 +0200
commit5de840cdfd0396341e390470c3e03c370196ce64 (patch)
treec41308f6ac12d545a1e43c1ea8e4a332586c5fa0 /Jenkinsfile
parent281a7c30c4485c34ea11e7051e55ebf6a859b993 (diff)
downloadzookeeper-5de840cdfd0396341e390470c3e03c370196ce64.tar.gz
ZOOKEEPER-3896: PollSCM hourly only to let previous builds to finish
Looks like that PollSCM trigger will trigger another build on the same ref if other builds haven't completed rather than haven't started. I change the polling interval to hourly to let other builds finish in time. Author: Andor Molnar <andor@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org> Closes #1413 from anmolnar/ZOOKEEPER-3896_2
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 4fdc0e1bd..9c3e4f6d4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,10 +21,11 @@ pipeline {
options {
buildDiscarder(logRotator(daysToKeepStr: '14'))
+ timeout(time: 59, unit: 'MINUTES')
}
triggers {
- pollSCM 'H/10 * * * *'
+ pollSCM('@hourly')
cron('@daily')
}
@@ -68,4 +69,3 @@ pipeline {
}
}
}
-