bci2: Allow setting custom schedule

The `buildContainerImage2` function now accepts an optional `schedule`
argument.  If specified, the value will be used as the cron expression
for triggering a build periodically.
bci2-resources
Dustin 2023-11-01 10:10:01 -05:00
parent 14cb41d4d9
commit 008bae5cee
1 changed files with 5 additions and 4 deletions

View File

@ -1,15 +1,16 @@
// vim: set sw=4 sts=4 ts=4 et : // vim: set sw=4 sts=4 ts=4 et :
def call(args) { def call(args) {
properties([
pipelineTriggers([cron('H H H * *')])
])
def registry = args?.registry def registry = args?.registry
def project = args?.project def project = args?.project
def name = args?.name def name = args?.name
def tag = args?.tag def tag = args?.tag
def archlist = args?.archlist def archlist = args?.archlist
def schedule = args?.schedule
properties([
pipelineTriggers([cron(schedule ?: 'H H H * *')])
])
if (registry == null) { if (registry == null) {
registry = 'git.pyrocufflink.net' registry = 'git.pyrocufflink.net'