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/git-validate-jira-urls.sh
61 - ../shell/jjb-install.sh
62 - ../shell/jjb-verify-job.sh
63 - ../shell/jjb-check-unicode.sh
64 - lf-infra-gpg-verify-git-signature
67 name: lf-infra-jjb-parameters
71 default: '{jjb-version}'
72 description: Jenkins Job Builder version to download and install.
78 # JJB verify and merge jobs are the same except for their scm, trigger, and
79 # builders definition. This anchor is the common template
80 - lf_jjb_verify_merge: &lf_jjb_verify_merge
81 name: lf-jjb-verify-merge
82 project-type: freestyle
86 ######################
87 # Default parameters #
88 ######################
92 submodule-recursive: true
99 - lf-infra-properties:
101 build-days-to-keep: 7
104 - lf-infra-parameters:
108 - lf-infra-jjb-parameters:
109 jjb-version: '{jjb-version}'
114 jenkins-ssh-credential: '{jenkins-ssh-credential}'
120 name: '{project-name}-jjb-merge'
122 <<: *lf_jjb_verify_merge
123 # yamllint disable-line rule:key-duplicates
124 <<: *lf_jjb_merge_builders
126 ######################
127 # Default parameters #
128 ######################
130 git-url: '$GIT_URL/$GERRIT_PROJECT'
132 #####################
133 # Job Configuration #
134 #####################
137 - lf-infra-gerrit-scm:
141 submodule-recursive: '{submodule-recursive}'
142 choosing-strategy: default
143 jenkins-ssh-credential: '{jenkins-ssh-credential}'
147 server-name: '{gerrit-server-name}'
149 - change-merged-event
150 - comment-added-contains-event:
151 comment-contains-value: remerge$
153 - project-compare-type: ANT
154 project-pattern: '{project}'
156 - branch-compare-type: ANT
157 branch-pattern: '**/{branch}'
158 <<: *lf_jjb_file_paths
161 name: '{project-name}-jjb-verify'
162 id: gerrit-jjb-verify
164 <<: *lf_jjb_verify_merge
165 # yamllint disable-line rule:key-duplicates
166 <<: *lf_jjb_verify_builders
168 ######################
169 # Default parameters #
170 ######################
172 git-url: '$GIT_URL/$GERRIT_PROJECT'
174 #####################
175 # Job Configuration #
176 #####################
179 - lf-infra-gerrit-scm:
181 refspec: '$GERRIT_REFSPEC'
182 branch: '$GERRIT_BRANCH'
183 submodule-recursive: '{submodule-recursive}'
184 choosing-strategy: gerrit
185 jenkins-ssh-credential: '{jenkins-ssh-credential}'
189 server-name: '{gerrit-server-name}'
191 - patchset-created-event:
192 exclude-drafts: false
193 exclude-trivial-rebase: false
194 exclude-no-code-change: false
195 - draft-published-event
196 - comment-added-contains-event:
197 comment-contains-value: recheck$
199 - project-compare-type: ANT
200 project-pattern: '{project}'
202 - branch-compare-type: ANT
203 branch-pattern: '**/{branch}'
204 <<: *lf_jjb_file_paths
207 name: '{project-name}-jjb-merge'
209 <<: *lf_jjb_verify_merge
210 # yamllint disable-line rule:key-duplicates
211 <<: *lf_jjb_merge_builders
213 #####################
214 # Job Configuration #
215 #####################
219 url: '{git-url}/{github-org}/{project}'
222 - lf-infra-github-scm:
223 url: '{git-clone-url}{github-org}/{project}'
226 submodule-recursive: '{submodule-recursive}'
227 choosing-strategy: default
228 jenkins-ssh-credential: '{jenkins-ssh-credential}'
234 - github-pull-request:
235 trigger-phrase: '^remerge$'
236 only-trigger-phrase: true
237 status-context: 'JJB Merge'
240 auto-close-on-fail: false
245 name: '{project-name}-jjb-verify'
246 id: github-jjb-verify
248 <<: *lf_jjb_verify_merge
249 # yamllint disable-line rule:key-duplicates
250 <<: *lf_jjb_verify_builders
252 #####################
253 # Job Configuration #
254 #####################
258 url: '{git-url}/{github-org}/{project}'
261 - lf-infra-github-scm:
262 url: '{git-clone-url}{github-org}/{project}'
263 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
265 submodule-recursive: '{submodule-recursive}'
266 choosing-strategy: default
267 jenkins-ssh-credential: '{jenkins-ssh-credential}'
270 - github-pull-request:
271 trigger-phrase: '^recheck$'
272 only-trigger-phrase: false
273 status-context: 'JJB Verify'
276 auto-close-on-fail: false