Add support for a cron override with merge job 54/71054/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 Apr 2018 20:26:02 +0000 (16:26 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 17 Apr 2018 20:26:03 +0000 (16:26 -0400)
Per request in https://jira.linuxfoundation.org/browse/RELENG-893
add a cron parameter to the merge job to allow projects to optionally
choose a different cron schedule for their merge jobs.

Issue: https://jira.linuxfoundation.org/browse/RELENG-893
Change-Id: Ibac49ae549410f7e47c5cd10dab2d04a61afac8b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/releng-templates-java.yaml

index 89869dccde90eadd01f22ddc581100b9154c8f4f..3e9a0025b52d50401b23a7101db7b397eebce0d3 100644 (file)
       **/target/**/feature.xml
       **/target/failsafe-reports/failsafe-summary.xml
       **/target/surefire-reports/*-output.txt
+    cron: 'H H * * 0'
     mvn-opts: ''
     mvn-version: mvn33
     java-version: openjdk8
           build-timeout: '{build-timeout}'
 
     triggers:
-      - timed: 'H H * * 0'
+      - timed: '{obj:cron}'
       - gerrit-trigger-patch-merged:
           gerrit-server-name: '{gerrit-server-name}'
           name: '{project}'