From: Jeremy Phelps Date: Mon, 10 Dec 2018 18:25:31 +0000 (-0600) Subject: Refactor github-maven-sonar trigger X-Git-Tag: v0.28.3~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F13908%2F3;p=releng%2Fglobal-jjb.git Refactor github-maven-sonar trigger Configure the trigger to run on weekly cron, and also allow a trigger via GHPRB comment only. Issue-ID: RELENG-1508 Change-Id: I82e2ab19dc52bc29c8c6549ba753ad1e2e743994 Signed-off-by: Jeremy Phelps --- diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index 4bfb1427..9671ebbe 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -941,12 +941,18 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: + # Build weekly on Saturdays + - timed: 'H H * * 6' - github-pull-request: trigger-phrase: '^run-sonar$' - only-trigger-phrase: false + only-trigger-phrase: true status-context: 'Maven Sonar' permit-all: true github-hooks: true + org-list: + - '{github-org}' + white-list: '{obj:github_pr_whitelist}' + admin-list: '{obj:github_pr_admin_list}' white-list-target-branches: - '{branch}'