3 name: '{project-name}-ci-jobs'
5 # This job group contains all the recommended jobs that should be deployed
15 name: '{project-name}-github-ci-jobs'
17 # This job group contains all the recommended jobs that should be deployed
18 # for any project ci that is using github.
34 - config-file-provider:
37 target: '$HOME/.config/jenkins_jobs/jenkins_jobs.ini'
39 - lf_jjb_file_paths: &lf_jjb_file_paths
40 name: lf-jjb-file-paths
47 - lf_jjb_merge_builders: &lf_jjb_merge_builders
48 name: lf-jjb-merge-builders
51 - shell: !include-raw-escape:
52 - ../shell/jjb-install.sh
53 - ../shell/jjb-merge-job.sh
55 - lf_jjb_verify_builders: &lf_jjb_verify_builders
56 name: lf-jjb-verfy-builders
59 - shell: !include-raw-escape:
60 - ../shell/jjb-install.sh
61 - ../shell/jjb-verify-job.sh
62 - ../shell/jjb-check-unicode.sh
63 - gpg-verify-git-signature
66 name: lf-infra-jjb-parameters
70 default: '{jjb-version}'
71 description: Jenkins Job Builder version to download and install.
77 # JJB verify and merge jobs are the same except for their scm, trigger, and
78 # builders definition. This anchor is the common template
79 - lf_jjb_verify_merge: &lf_jjb_verify_merge
80 name: lf-jjb-verify-merge
81 project-type: freestyle
85 ######################
86 # Default parameters #
87 ######################
90 submodule-recursive: true
97 - lf-infra-properties:
102 - lf-infra-parameters:
105 - lf-infra-jjb-parameters:
106 jjb-version: '{jjb-version}'
111 jenkins-ssh-credential: '{jenkins-ssh-credential}'
117 name: '{project-name}-jjb-merge'
119 <<: *lf_jjb_verify_merge
120 # yamllint disable-line rule:key-duplicates
121 <<: *lf_jjb_merge_builders
124 - lf-infra-gerrit-scm:
125 jenkins-ssh-credential: '{jenkins-ssh-credential}'
128 submodule-recursive: '{submodule-recursive}'
129 choosing-strategy: default
133 server-name: '{gerrit-server-name}'
135 - change-merged-event
136 - comment-added-contains-event:
137 comment-contains-value: remerge$
139 - project-compare-type: ANT
140 project-pattern: '{project}'
142 - branch-compare-type: ANT
143 branch-pattern: '**/{branch}'
144 <<: *lf_jjb_file_paths
147 name: '{project-name}-jjb-verify'
148 id: gerrit-jjb-verify
150 <<: *lf_jjb_verify_merge
151 # yamllint disable-line rule:key-duplicates
152 <<: *lf_jjb_verify_builders
155 - lf-infra-gerrit-scm:
156 refspec: '$GERRIT_REFSPEC'
157 branch: '$GERRIT_BRANCH'
158 submodule-recursive: '{submodule-recursive}'
159 choosing-strategy: gerrit
160 jenkins-ssh-credential: '{jenkins-ssh-credential}'
164 server-name: '{gerrit-server-name}'
166 - patchset-created-event:
167 exclude-drafts: false
168 exclude-trivial-rebase: false
169 exclude-no-code-change: false
170 - draft-published-event
171 - comment-added-contains-event:
172 comment-contains-value: recheck$
174 - project-compare-type: ANT
175 project-pattern: '{project}'
177 - branch-compare-type: ANT
178 branch-pattern: '**/{branch}'
179 <<: *lf_jjb_file_paths
182 name: '{project-name}-jjb-merge'
184 <<: *lf_jjb_verify_merge
185 # yamllint disable-line rule:key-duplicates
186 <<: *lf_jjb_merge_builders
188 ######################
189 # Default parameters #
190 ######################
192 github-url: https://github.com
194 #####################
195 # Job Configuration #
196 #####################
200 url: '{github-url}/{github-org}/{project}'
203 - lf-infra-github-scm:
204 url: 'git@github.com:{github-org}/{project}'
207 submodule-recursive: '{submodule-recursive}'
208 choosing-strategy: default
209 jenkins-ssh-credential: '{jenkins-ssh-credential}'
215 - github-pull-request:
216 trigger-phrase: '^remerge$'
217 only-trigger-phrase: true
218 status-context: 'JJB Merge'
221 auto-close-on-fail: false
226 name: '{project-name}-jjb-verify'
227 id: github-jjb-verify
228 <<: *lf_jjb_verify_merge
229 # yamllint disable-line rule:key-duplicates
230 <<: *lf_jjb_merge_builders
232 ######################
233 # Default parameters #
234 ######################
236 github-url: https://github.com
238 #####################
239 # Job Configuration #
240 #####################
244 url: '{github-url}/{github-org}/{project}'
247 - lf-infra-github-scm:
248 url: 'git@github.com:{github-org}/{project}'
249 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
251 submodule-recursive: '{submodule-recursive}'
252 choosing-strategy: default
253 jenkins-ssh-credential: '{jenkins-ssh-credential}'
256 - github-pull-request:
257 trigger-phrase: '^recheck$'
258 only-trigger-phrase: false
259 status-context: 'JJB Verify'
262 auto-close-on-fail: false