From 50a9598b278d4043eaaeb4fa5e83d7891afa71d6 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 31 Oct 2022 10:17:45 -0500 Subject: [PATCH] draft: schedule to run monthly --- ci/Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index c32aed6..47c5a23 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -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' }