From: Jeremy Phelps Date: Thu, 28 Sep 2017 19:22:43 +0000 (-0500) Subject: Add timed parameter to lf-maven-release anchor X-Git-Tag: v0.9.0~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F6608%2F4;p=releng%2Fglobal-jjb.git Add timed parameter to lf-maven-release anchor Timed parameter is to specify a cron schedule for the job to run. Change-Id: Ic08983b4ceed2f05896471fa50797e0351e191f8 Signed-off-by: Jeremy Phelps --- diff --git a/.jjb-test/expected-xml/gerrit-maven-maven-release-master b/.jjb-test/expected-xml/gerrit-maven-maven-release-master index 191c7810..20d417ab 100644 --- a/.jjb-test/expected-xml/gerrit-maven-maven-release-master +++ b/.jjb-test/expected-xml/gerrit-maven-maven-release-master @@ -144,6 +144,9 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. + + + diff --git a/.jjb-test/expected-xml/github-maven-maven-release-master b/.jjb-test/expected-xml/github-maven-maven-release-master index d41076e5..401a1bf7 100644 --- a/.jjb-test/expected-xml/github-maven-maven-release-master +++ b/.jjb-test/expected-xml/github-maven-maven-release-master @@ -139,6 +139,9 @@ For example '<1.0.0' or '>=1.0.0,<2.0.0'. + + + diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index 1a689b34..fc203e79 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -184,6 +184,9 @@ # :gerrit_verify_triggers: Override Gerrit Triggers. # :mvn-global-settings: The name of the Maven global settings to use for # Maven configuration. (default: global-settings) + # :cron: Cron schedule when to trigger the job. This parameter also + # supports multiline input via YAML pipe | character in cases where + # one may want to provide more than 1 cron timer. (default: '') ###################### # Default parameters # @@ -200,6 +203,7 @@ mvn-version: mvn33 stream: master submodule-recursive: true + cron: '' gerrit_release_triggers: - comment-added-contains-event: @@ -243,6 +247,7 @@ choosing-strategy: default triggers: + - timed: '{obj:cron}' - gerrit: server-name: '{gerrit-server-name}' trigger-on: '{obj:gerrit_release_triggers}' @@ -274,6 +279,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: + - timed: '{obj:cron}' - lf-infra-github-pr-trigger: trigger-phrase: '^build release$' only-trigger-phrase: true