3 name: '{project-name}-github-node-jobs'
5 # Job group containing recommended jobs to deploy for a Node Project.
13 name: '{project-name}-node-jobs'
15 # Job group containing recommended jobs to deploy for a Node Project.
26 - lf_node_verify: &lf_node_verify
29 ######################
30 # Default parameters #
31 ######################
36 git-url: '$GIT_URL/$GERRIT_PROJECT'
39 submodule-recursive: true
41 gerrit_trigger_file_paths:
43 pattern: '{node-dir}/**'
45 gerrit_verify_triggers:
46 - patchset-created-event:
48 exclude-trivial-rebase: false
49 exclude-no-code-change: false
50 - draft-published-event
51 - comment-added-contains-event:
52 comment-contains-value: recheck$
58 project-type: freestyle
63 - lf-infra-properties:
64 build-days-to-keep: '{build-days-to-keep}'
67 - lf-infra-parameters:
71 lftools-version: '{lftools-version}'
72 - lf-infra-node-parameters:
73 node-dir: '{node-dir}'
74 node-version: '{node-version}'
78 build-timeout: '{build-timeout}'
79 jenkins-ssh-credential: '{jenkins-ssh-credential}'
82 - shell: !include-raw-escape:
83 - ../shell/node-install.sh
84 - ../shell/node-run.sh
90 name: '{project-name}-node-verify-{stream}'
91 id: gerrit-node-verify
95 - lf-infra-gerrit-scm:
96 jenkins-ssh-credential: '{jenkins-ssh-credential}'
98 refspec: '$GERRIT_REFSPEC'
99 branch: 'origin/$GERRIT_BRANCH'
100 submodule-recursive: '{submodule-recursive}'
101 choosing-strategy: gerrit
105 server-name: '{gerrit-server-name}'
106 trigger-on: '{obj:gerrit_verify_triggers}'
108 - project-compare-type: ANT
109 project-pattern: '{project}'
111 - branch-compare-type: ANT
112 branch-pattern: '**/{branch}'
113 file-paths: '{obj:gerrit_trigger_file_paths}'
116 name: '{project-name}-node-verify-{stream}'
117 id: github-node-verify
122 url: '{git-url}/{github-org}/{project}'
125 - lf-infra-github-scm:
126 url: '{git-clone-url}{github-org}/{project}'
127 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
129 submodule-recursive: '{submodule-recursive}'
130 choosing-strategy: default
131 jenkins-ssh-credential: '{jenkins-ssh-credential}'
134 - github-pull-request:
135 trigger-phrase: '^recheck$'
136 only-trigger-phrase: false
137 status-context: 'Node Verify'
140 auto-close-on-fail: false