1
0
Fork 0

draft: schedule to run monthly
dustin/pythonctnr/pipeline/head Something is wrong with the build of this commit Details

Dustin 2022-10-31 10:17:45 -05:00
parent 5f0d0cade4
commit 6a0b8a6b3a
1 changed files with 9 additions and 0 deletions

9
ci/Jenkinsfile vendored
View File

@ -1,5 +1,9 @@
// 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 {
agent {
kubernetes {
@ -16,9 +20,14 @@ pipeline {
disableConcurrentBuilds()
}
triggers {
cron 'TZ=America/Chicago\n20 10 31 10 *'
}
parameters {
booleanParam \
name: 'Clean',
defaultValue: IS_TRIGGERED_BY_TIMER,
description: 'Clean the workspace and perform a full rebuild'
}