X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-node-jobs.yaml;h=c6bcc9b3c7bf0f0b68f16ce4038e0dc9adcb9fc3;hb=67aa548eb9d34b53810478b7c972cf005e72b431;hp=f992d34cbf3518f906b043dd1a975f8381edcf81;hpb=df523ff68c8dbf3ad8eb09ef9cc04825bba86a4f;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-node-jobs.yaml b/jjb/lf-node-jobs.yaml index f992d34c..c6bcc9b3 100644 --- a/jjb/lf-node-jobs.yaml +++ b/jjb/lf-node-jobs.yaml @@ -1,23 +1,4 @@ --- -- job-group: - name: '{project-name}-github-node-jobs' - - # Job group containing recommended jobs to deploy for a Node Project. - - node-version: 6.11.4 - - jobs: - - github-node-verify - -- job-group: - name: '{project-name}-node-jobs' - - # Job group containing recommended jobs to deploy for a Node Project. - - node-version: 6.11.4 - - jobs: - - gerrit-node-verify ############### # Node Verify # @@ -33,23 +14,20 @@ branch: master build-days-to-keep: 7 build-timeout: 10 + disable-job: false git-url: '$GIT_URL/$GERRIT_PROJECT' + github-url: 'https://github.com' node-dir: '' stream: master 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 # @@ -58,6 +36,7 @@ project-type: freestyle node: '{build-node}' concurrent: true + disabled: '{disable-job}' properties: - lf-infra-properties: @@ -91,6 +70,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: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$' + + ##################### + # Job Configuration # + ##################### + scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -118,23 +114,27 @@ <<: *lf_node_verify properties: + - lf-infra-properties: + build-days-to-keep: '{build-days-to-keep}' - github: - url: '{git-url}/{github-org}/{project}' + url: '{github-url}/{github-org}/{project}' scm: - lf-infra-github-scm: url: '{git-clone-url}{github-org}/{project}' refspec: '+refs/pull/*:refs/remotes/origin/pr/*' - branch: '{branch}' + branch: '$sha1' submodule-recursive: '{submodule-recursive}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: - github-pull-request: - trigger-phrase: '^recheck$' + trigger-phrase: '^(recheck|reverify)$' only-trigger-phrase: false status-context: 'Node Verify' permit-all: true github-hooks: true - auto-close-on-fail: false + included-regions: '{obj:github_included_regions}' + white-list-target-branches: + - '{branch}'