Merge "Configurable Timed Trigger for Packer Merge Jobs"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 14 Jun 2018 22:11:14 +0000 (22:11 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Thu, 14 Jun 2018 22:11:14 +0000 (22:11 +0000)
docs/jjb/lf-ci-jobs.rst
jjb/lf-ci-jobs.yaml

index e510d7c..f4e11d1 100644 (file)
@@ -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)
index 75efa86..a01ce2b 100644 (file)
@@ -63,6 +63,7 @@
 
     branch: master
     build-timeout: 90
+    cron: '@monthly'
     stream: master
     submodule-recursive: true
     packer-cloud-settings: packer-cloud-env
           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}'
           jenkins-ssh-credential: '{jenkins-ssh-credential}'
 
     triggers:
-      - timed: '00 10 1 * *'
+      - timed: '{cron}'
       - github
       - pollscm:
           cron: ''