draft: schedule to run monthly
dustin/pythonctnr/pipeline/head There was a failure building this commit
Details
dustin/pythonctnr/pipeline/head There was a failure building this commit
Details
parent
5f0d0cade4
commit
50a9598b27
|
@ -1,5 +1,9 @@
|
||||||
// vim: set ft=groovy sw=4 ts=4 sts=4 et :
|
// vim: set ft=groovy sw=4 ts=4 sts=4 et :
|
||||||
|
|
||||||
|
def IS_TRIGGERED_BY_TIMER = currentBuild.getbuildCauses(
|
||||||
|
'hudson.triggers.TimerTrigger$TimerTriggerCause'
|
||||||
|
).size() > 0
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
|
@ -16,9 +20,14 @@ pipeline {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
triggers {
|
||||||
|
cron 'TZ=America/Chicago\n20 10 31 10 *'
|
||||||
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
booleanParam \
|
booleanParam \
|
||||||
name: 'Clean',
|
name: 'Clean',
|
||||||
|
defaultValue: IS_TRIGGERED_BY_TIMER,
|
||||||
description: 'Clean the workspace and perform a full rebuild'
|
description: 'Clean the workspace and perform a full rebuild'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue