From 6eefde1f463638b5021c2ec96eb67a017d379f1f Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 11 Jun 2018 21:41:42 -0400 Subject: [PATCH] Use include-regions to limit RTD build paths Issue: RELENG-1022 Change-Id: I4e5ed50d399b49470a95937a2b17cade210b768c Signed-off-by: Thanh Ha --- jjb/lf-rtd-jobs.yaml | 52 +++++++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/jjb/lf-rtd-jobs.yaml b/jjb/lf-rtd-jobs.yaml index aecba2a3..3c21dbc5 100644 --- a/jjb/lf-rtd-jobs.yaml +++ b/jjb/lf-rtd-jobs.yaml @@ -25,14 +25,21 @@ ###################### gerrit_trigger_file_paths: - - compare-type: ANT - pattern: '**/*.css' - - compare-type: ANT - pattern: '**/*.html' - - compare-type: ANT - pattern: '**/*.rst' - - compare-type: ANT - pattern: '**/conf.py' + - compare-type: REG_EXP + pattern: '.*\.css' + - compare-type: REG_EXP + pattern: '.*\.html' + - compare-type: REG_EXP + pattern: '.*\.rst' + - compare-type: REG_EXP + pattern: '.*\/conf.py' + + # github_included_regions MUST match gerrit_trigger_file_paths + github_included_regions: + - '.*\.css' + - '.*\.html' + - '.*\.rst' + - '.*\/conf.py' ##################### # Job Configuration # @@ -125,18 +132,21 @@ url: '{git-url}/{github-org}/{project}' triggers: - - lf-infra-github-pr-trigger: + - timed: 'H H * * *' + - github + - pollscm: + cron: '' + - github-pull-request: trigger-phrase: '^remerge$' - only-trigger-phrase: false + only-trigger-phrase: true status-context: 'RTD Merge' - permit-all: true + permit-all: false github-hooks: true - github-org: '' - github_pr_whitelist: - - '' - github_pr_admin_list: - - '' - - timed: 'H H * * *' + org-list: + - '{github-org}' + white-list: '{obj:github_pr_whitelist}' + admin-list: '{obj:github_pr_admin_list}' + included-regions: '{obj:github_included_regions}' ############# # RTD VERIFY# @@ -226,14 +236,10 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - - lf-infra-github-pr-trigger: + - github-pull-request: trigger-phrase: '^recheck$' only-trigger-phrase: false status-context: 'RTD Verify' permit-all: true github-hooks: true - github-org: '' - github_pr_whitelist: - - '' - github_pr_admin_list: - - '' + included-regions: '{obj:github_included_regions}' -- 2.16.6