From: Trevor Bramwell Date: Thu, 26 Apr 2018 18:58:08 +0000 (-0700) Subject: Configurable Timed Trigger for Packer Merge Jobs X-Git-Tag: v0.21.0~5^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=f6db87032271817f546f6c1668138681529d7d3e;p=releng%2Fglobal-jjb.git Configurable Timed Trigger for Packer Merge Jobs This change add the optional parameter 'cron' to packer builds so users can configure when packer images can be rebuilt. It also switches the timer from '00 10 1 * *' to '@monthly' to take advantage of Jenkins cron hash system so the jobs are splayed over the month and don't all start on the same minute. Change-Id: I5bc29dab281d8ad1a4260994c1b1d6fb81b5a488 Signed-off-by: Trevor Bramwell --- diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index e510d7c3..f4e11d1d 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -403,6 +403,7 @@ Packer Merge job runs `packer build` to build system images in the cloud. :Optional parameters: + :cron: Time when the packer image should be rebuilt (default: @monthly) :branch: Git branch to fetch for the build. (default: master) :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in seconds before aborting build. (default: 10) diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 668342a3..233fec46 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -79,6 +79,7 @@ branch: master build-timeout: 90 + cron: '@monthly' stream: master submodule-recursive: true packer-cloud-settings: packer-cloud-env @@ -745,7 +746,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - - timed: '00 10 1 * *' + - timed: '{cron}' - gerrit: server-name: '{gerrit-server-name}' trigger-on: '{obj:gerrit_merge_triggers}' @@ -778,7 +779,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - - timed: '00 10 1 * *' + - timed: '{cron}' - github - pollscm: cron: ''