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_URL/$PROJECT'
205 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
207 submodule-recursive: '{submodule-recursive}'
208 choosing-strategy: default
209 jenkins-ssh-credential: '{jenkins-ssh-credential}'
212 - github-pull-request:
213 trigger-phrase: '^remerge$'
214 only-trigger-phrase: true
215 status-context: 'JJB Merge'
218 auto-close-on-fail: false
223 name: '{project-name}-jjb-verify'
224 id: github-jjb-verify
225 <<: *lf_jjb_verify_merge
226 # yamllint disable-line rule:key-duplicates
227 <<: *lf_jjb_merge_builders
229 ######################
230 # Default parameters #
231 ######################
233 github-url: https://github.com
235 #####################
236 # Job Configuration #
237 #####################
241 url: '{github-url}/{github-org}/{project}'
244 - lf-infra-github-scm:
245 url: '$GIT_URL/$PROJECT'
246 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
248 submodule-recursive: '{submodule-recursive}'
249 choosing-strategy: default
250 jenkins-ssh-credential: '{jenkins-ssh-credential}'
253 - github-pull-request:
254 trigger-phrase: '^recheck$'
255 only-trigger-phrase: false
256 status-context: 'JJB Verify'
259 auto-close-on-fail: false