From: Thanh Ha Date: Tue, 12 Jun 2018 02:08:52 +0000 (-0400) Subject: Use include-regions to limit node build paths X-Git-Tag: v0.21.0~6^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F11191%2F1;p=releng%2Fglobal-jjb.git Use include-regions to limit node build paths Issue: RELENG-1022 Change-Id: I31faddc8f567127ed3d3fa648451c4150cc94c0a Signed-off-by: Thanh Ha --- diff --git a/jjb/lf-node-jobs.yaml b/jjb/lf-node-jobs.yaml index 5375c81d..fb27ed7d 100644 --- a/jjb/lf-node-jobs.yaml +++ b/jjb/lf-node-jobs.yaml @@ -39,17 +39,12 @@ submodule-recursive: true gerrit_trigger_file_paths: - - compare-type: ANT - pattern: '{node-dir}/**' + - compare-type: REG_EXP + pattern: '.*' - gerrit_verify_triggers: - - patchset-created-event: - exclude-drafts: false - exclude-trivial-rebase: false - exclude-no-code-change: false - - draft-published-event - - comment-added-contains-event: - comment-contains-value: recheck$ + # github_included_regions MUST match gerrit_trigger_file_paths + github_included_regions: + - '.*' ##################### # Job Configuration # @@ -91,6 +86,23 @@ id: gerrit-node-verify <<: *lf_node_verify + ###################### + # Default parameters # + ###################### + + gerrit_verify_triggers: + - patchset-created-event: + exclude-drafts: true + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: recheck$ + + ##################### + # Job Configuration # + ##################### + scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -137,4 +149,4 @@ status-context: 'Node Verify' permit-all: true github-hooks: true - auto-close-on-fail: false + included-regions: '{obj:github_included_regions}'