2 # these parameters are used for infra related variables
8 default: https://review.opendev.org/jjb/jenkins-job-builder
9 description: OpenStack JJB repo
13 description: OpenStack JJB version to install - matches to LFN JJB version
15 # these parameters are used for setting the Gerrit Project on Nordix
17 name: project-parameters
22 description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
26 description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
28 # these parameters are used for streaming changes from various Gerrit Systems
30 name: nordix-gerrit-parameters
35 description: Non-interactive user to stream Gerrit Events on Nordix Gerrit
38 default: https://gerrit.nordix.org
39 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
42 default: ssh://$GERRIT_USER@gerrit.nordix.org:29418
43 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
46 name: onap-gerrit-parameters
51 description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
54 default: https://gerrit.onap.org/r/p
55 description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
58 default: ssh://$GERRIT_USER@gerrit.onap.org:29418
59 description: SSH URL to Project Repo on ONAP Gerrit to clone repo
62 name: acumos-gerrit-parameters
67 description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
70 default: https://gerrit.acumos.org/r/p
71 description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
74 default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
75 description: SSH URL to Project Repo on Acumos Gerrit to clone repo
78 name: odl-gerrit-parameters
83 description: Non-interactive user to stream Gerrit Events on ODL Gerrit
86 default: https://git.opendaylight.org/gerrit
87 description: HTTPS URL to Project Repo on OODL Gerrit to clone repo
90 default: ssh://$GERRIT_USER@git.opendaylight.org:29418
91 description: SSH URL to Project Repo on ODL Gerrit to clone repo
94 name: opendev-gerrit-parameters
99 description: Non-interactive user to stream Gerrit Events on OpenDev Gerrit
102 default: https://review.opendev.org
103 description: HTTPS URL to Project Repo on OpenDev Gerrit to clone repo
106 default: ssh://$GERRIT_USER@review.opendev.org:29418
107 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo
110 name: oransc-gerrit-parameters
115 description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit
118 default: https://gerrit.o-ran-sc.org/r
119 description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo
122 default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
123 description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
125 # Verify job for Geode git tags to make sure there are in agreed format
127 name: 'verify-geode-tag-macro'
130 !include-raw: ./verify_geode_tag.sh
132 # defaults for job build history
134 name: logrotate-default
139 artifact-days-to-keep: 60
140 artifact-num-to-keep: 200
142 # defaults for SCM, Gerrit and GitHub
147 url: '$GIT_BASE_SSH/$PROJECT'
148 credentials-id: '{ssh-credentials-id}'
150 - 'refs/heads/{branch}'
158 wipe-workspace: '{wipe_workspace}'
162 before: '{clean_before}'
163 choosing-strategy: 'default'
169 url: '$GIT_BASE_SSH/$PROJECT'
170 credentials-id: '{ssh-credentials-id}'
172 - 'refs/heads/{branch}'
180 wipe-workspace: '{wipe_workspace}'
184 before: '{clean_before}'
185 choosing-strategy: 'gerrit'
191 url: 'https://github.com/$PROJECT.git'
201 wipe-workspace: '{wipe_workspace}'
205 before: '{clean_before}'
206 choosing-strategy: 'default'
207 basedir: '{base_dir}'
209 # triggers for Nordix Gerrit
211 name: nordix-gerrit-trigger-patchset-created
214 server-name: 'Nordix Gerrit'
216 - patchset-created-event:
217 exclude-drafts: 'false'
218 exclude-trivial-rebase: 'false'
219 exclude-no-code-change: 'false'
220 - draft-published-event
221 - comment-added-contains-event:
222 comment-contains-value: 'recheck'
223 - comment-added-contains-event:
224 comment-contains-value: 'reverify'
226 - project-compare-type: 'REG_EXP'
227 project-pattern: '{project}'
229 - branch-compare-type: 'ANT'
230 branch-pattern: '**/{branch}'
232 - compare-type: 'ANT'
241 name: nordix-gerrit-trigger-change-merged
244 server-name: 'Nordix Gerrit'
246 - change-merged-event
247 - comment-added-contains-event:
248 comment-contains-value: 'remerge'
250 - project-compare-type: 'ANT'
251 project-pattern: '{project}'
253 - branch-compare-type: 'ANT'
254 branch-pattern: '**/{branch}'
256 - compare-type: 'ANT'
260 name: nordix-gerrit-push-upstream
263 server-name: 'Nordix Gerrit'
265 - comment-added-contains-event:
266 comment-contains-value: 'push-upstream'
268 - project-compare-type: 'ANT'
269 project-pattern: '{project}'
271 - branch-compare-type: 'ANT'
272 branch-pattern: '**/{branch}'
274 - compare-type: 'ANT'
278 name: nordix-gerrit-patchset-created-or-push-upstream
281 server-name: 'Nordix Gerrit'
283 - comment-added-contains-event:
284 comment-contains-value: 'push-upstream'
285 - patchset-created-event:
288 - project-compare-type: 'ANT'
289 project-pattern: '{project}'
291 - branch-compare-type: 'ANT'
292 branch-pattern: '**/{branch}'
294 - compare-type: 'ANT'
297 # triggers for ONAP Gerrit
299 name: onap-gerrit-trigger-change-merged
302 server-name: 'ONAP Gerrit'
304 - change-merged-event
305 - comment-added-contains-event:
306 comment-contains-value: 'remerge'
308 - project-compare-type: 'ANT'
309 project-pattern: '{project}'
311 - branch-compare-type: 'ANT'
312 branch-pattern: '**/{branch}'
314 - compare-type: 'ANT'
319 # triggers for Acumos Gerrit
321 name: acumos-gerrit-trigger-change-merged
324 server-name: 'Acumos Gerrit'
326 - change-merged-event
327 - comment-added-contains-event:
328 comment-contains-value: 'remerge'
330 - project-compare-type: 'ANT'
331 project-pattern: '{project}'
333 - branch-compare-type: 'ANT'
334 branch-pattern: '**/{branch}'
336 - compare-type: 'ANT'
341 # triggers for ODL Gerrit
343 name: odl-gerrit-trigger-change-merged
346 server-name: 'ODL Gerrit'
348 - change-merged-event
349 - comment-added-contains-event:
350 comment-contains-value: 'remerge'
352 - project-compare-type: 'ANT'
353 project-pattern: '{project}'
355 - branch-compare-type: 'ANT'
356 branch-pattern: '**/{branch}'
358 - compare-type: 'ANT'
363 # triggers for OpenDev Gerrit
365 name: opendev-gerrit-trigger-change-merged
368 server-name: 'OpenDev Gerrit'
370 - change-merged-event
371 - comment-added-contains-event:
372 comment-contains-value: 'remerge'
374 - project-compare-type: 'ANT'
375 project-pattern: '{project}'
377 - branch-compare-type: 'ANT'
378 branch-pattern: '**/{branch}'
380 - compare-type: 'ANT'
385 # triggers for ORANSC Gerrit
387 name: oransc-gerrit-trigger-change-merged
390 server-name: 'ORANSC Gerrit'
392 - change-merged-event
393 - comment-added-contains-event:
394 comment-contains-value: 'remerge'
396 - project-compare-type: 'ANT'
397 project-pattern: '{project}'
399 - branch-compare-type: 'ANT'
400 branch-pattern: '**/{branch}'
402 - compare-type: 'ANT'
407 # wrappers to use for jobs
409 name: nordixinfra-jjb-creds-wrapper
411 - credentials-binding:
412 - username-password-separated:
413 credential-id: nordixinfra-jjb-creds
414 username: JJB_USERNAME
415 password: JJB_USERTOKEN
417 # timeout wrapper to use for jobs
423 timeout-var: 'BUILD_TIMEOUT'
426 # wrapper to fix jenkins build workspace permissions
428 name: fix-workspace-permissions
435 sudo chown -R $USER:$USER $WORKSPACE || exit 1
441 room: '{slack-channel}'
442 notify-start: '{notify-start}'
443 notify-success: '{notify-success}'
444 notify-failure: '{notify-failure}'
445 notify-back-to-normal: '{notify-back-to-normal}'
447 # property to discard old builds
454 artifact-days-to-keep: 30
455 artifact-num-to-keep: 100