2 # these parameters are used for setting the Gerrit Project on Nordix
4 name: project-parameters
9 description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
13 description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
15 # these parameters are used for streaming changes from various Gerrit Systems
17 name: nordix-gerrit-parameters
22 description: Non-interactive user to stream Gerrit Events on Nordix Gerrit
25 default: https://gerrit.nordix.org
26 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
29 default: ssh://$GERRIT_USER@gerrit.nordix.org:29418
30 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
33 name: onap-gerrit-parameters
38 description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
41 default: https://gerrit.onap.org/r/p
42 description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
45 default: ssh://$GERRIT_USER@gerrit.onap.org:29418
46 description: SSH URL to Project Repo on ONAP Gerrit to clone repo
49 name: acumos-gerrit-parameters
54 description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
57 default: https://gerrit.acumos.org/r/p
58 description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
61 default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
62 description: SSH URL to Project Repo on Acumos Gerrit to clone repo
65 name: odl-gerrit-parameters
70 description: Non-interactive user to stream Gerrit Events on ODL Gerrit
73 default: https://git.opendaylight.org/gerrit
74 description: HTTPS URL to Project Repo on OODL Gerrit to clone repo
77 default: ssh://$GERRIT_USER@git.opendaylight.org:29418
78 description: SSH URL to Project Repo on ODL Gerrit to clone repo
81 name: opendev-gerrit-parameters
86 description: Non-interactive user to stream Gerrit Events on OpenDev Gerrit
89 default: https://review.opendev.org
90 description: HTTPS URL to Project Repo on OpenDev Gerrit to clone repo
93 default: ssh://$GERRIT_USER@review.opendev.org:29418
94 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo
97 name: oransc-gerrit-parameters
102 description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit
105 default: https://gerrit.o-ran-sc.org/r
106 description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo
109 default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
110 description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
113 name: fdio-gerrit-parameters
118 description: Non-interactive user to stream Gerrit Events on Fast Data Project Gerrit
121 default: https://gerrit.fd.io/r
122 description: HTTPS URL to Project Repo on Fast Data Project Gerrit to clone repo
125 default: ssh://$GERRIT_USER@gerrit.fd.io:29418
126 description: SSH URL to Project Repo on Fast Data Project Gerrit to clone repo
128 # Verify job for Geode git tags to make sure there are in agreed format
130 name: 'verify-geode-tag-macro'
133 !include-raw: ./verify_geode_tag.sh
135 # defaults for job build history
137 name: logrotate-default
142 artifact-days-to-keep: 60
143 artifact-num-to-keep: 200
145 # defaults for SCM, Gerrit and GitHub
150 url: '$GIT_BASE_SSH/$PROJECT'
151 credentials-id: '{ssh-credentials-id}'
153 - 'refs/heads/{branch}'
161 wipe-workspace: '{wipe_workspace}'
165 before: '{clean_before}'
166 choosing-strategy: 'default'
172 url: '$GIT_BASE_SSH/$PROJECT'
173 credentials-id: '{ssh-credentials-id}'
175 - 'refs/heads/{branch}'
183 wipe-workspace: '{wipe_workspace}'
187 before: '{clean_before}'
188 choosing-strategy: 'gerrit'
194 url: 'https://github.com/$PROJECT.git'
204 wipe-workspace: '{wipe_workspace}'
208 before: '{clean_before}'
209 choosing-strategy: 'default'
210 basedir: '{base_dir}'
212 # triggers for Nordix Gerrit
214 name: nordix-gerrit-trigger-patchset-created
217 server-name: 'Nordix Gerrit'
219 - patchset-created-event:
220 exclude-drafts: 'false'
221 exclude-trivial-rebase: 'false'
222 exclude-no-code-change: 'false'
223 - draft-published-event
224 - comment-added-contains-event:
225 comment-contains-value: 'recheck'
226 - comment-added-contains-event:
227 comment-contains-value: 'reverify'
229 - project-compare-type: 'REG_EXP'
230 project-pattern: '{project}'
232 - branch-compare-type: 'ANT'
233 branch-pattern: '**/{branch}'
235 - compare-type: 'ANT'
244 name: nordix-gerrit-trigger-change-merged
247 server-name: 'Nordix Gerrit'
249 - change-merged-event
250 - comment-added-contains-event:
251 comment-contains-value: 'remerge'
253 - project-compare-type: 'ANT'
254 project-pattern: '{project}'
256 - branch-compare-type: 'ANT'
257 branch-pattern: '**/{branch}'
259 - compare-type: 'ANT'
263 name: nordix-gerrit-push-upstream
266 server-name: 'Nordix Gerrit'
268 - comment-added-contains-event:
269 comment-contains-value: 'push-upstream'
271 - project-compare-type: 'ANT'
272 project-pattern: '{project}'
274 - branch-compare-type: 'ANT'
275 branch-pattern: '**/{branch}'
277 - compare-type: 'ANT'
281 name: nordix-gerrit-patchset-created-or-push-upstream
284 server-name: 'Nordix Gerrit'
286 - comment-added-contains-event:
287 comment-contains-value: 'push-upstream'
288 - patchset-created-event:
291 - project-compare-type: 'ANT'
292 project-pattern: '{project}'
294 - branch-compare-type: 'ANT'
295 branch-pattern: '**/{branch}'
297 - compare-type: 'ANT'
300 # triggers for ONAP Gerrit
302 name: onap-gerrit-trigger-change-merged
305 server-name: 'ONAP Gerrit'
307 - change-merged-event
308 - comment-added-contains-event:
309 comment-contains-value: 'remerge'
311 - project-compare-type: 'ANT'
312 project-pattern: '{project}'
314 - branch-compare-type: 'ANT'
315 branch-pattern: '**/{branch}'
317 - compare-type: 'ANT'
322 # triggers for Acumos Gerrit
324 name: acumos-gerrit-trigger-change-merged
327 server-name: 'Acumos Gerrit'
329 - change-merged-event
330 - comment-added-contains-event:
331 comment-contains-value: 'remerge'
333 - project-compare-type: 'ANT'
334 project-pattern: '{project}'
336 - branch-compare-type: 'ANT'
337 branch-pattern: '**/{branch}'
339 - compare-type: 'ANT'
344 # triggers for ODL Gerrit
346 name: odl-gerrit-trigger-change-merged
349 server-name: 'ODL Gerrit'
351 - change-merged-event
352 - comment-added-contains-event:
353 comment-contains-value: 'remerge'
355 - project-compare-type: 'ANT'
356 project-pattern: '{project}'
358 - branch-compare-type: 'ANT'
359 branch-pattern: '**/{branch}'
361 - compare-type: 'ANT'
366 # triggers for OpenDev Gerrit
368 name: opendev-gerrit-trigger-change-merged
371 server-name: 'OpenDev Gerrit'
373 - change-merged-event
374 - comment-added-contains-event:
375 comment-contains-value: 'remerge'
377 - project-compare-type: 'ANT'
378 project-pattern: '{project}'
380 - branch-compare-type: 'ANT'
381 branch-pattern: '**/{branch}'
383 - compare-type: 'ANT'
388 # triggers for ORANSC Gerrit
390 name: oransc-gerrit-trigger-change-merged
393 server-name: 'ORANSC Gerrit'
395 - change-merged-event
396 - comment-added-contains-event:
397 comment-contains-value: 'remerge'
399 - project-compare-type: 'ANT'
400 project-pattern: '{project}'
402 - branch-compare-type: 'ANT'
403 branch-pattern: '**/{branch}'
405 - compare-type: 'ANT'
410 # triggers for Fast Data Project Gerrit
412 name: fdio-gerrit-trigger-change-merged
415 server-name: 'FDio Gerrit'
417 - change-merged-event
418 - comment-added-contains-event:
419 comment-contains-value: 'remerge'
421 - project-compare-type: 'ANT'
422 project-pattern: '{project}'
424 - branch-compare-type: 'ANT'
425 branch-pattern: '**/{branch}'
427 - compare-type: 'ANT'
432 # wrappers to use for jobs
434 name: nordixinfra-jjb-creds-wrapper
436 - credentials-binding:
437 - username-password-separated:
438 credential-id: nordixinfra-jjb-creds
439 username: JJB_USERNAME
440 password: JJB_USERTOKEN
442 # wrappers to use for jobs
444 name: nordixinfra-harbor-creds-wrapper
446 - credentials-binding:
447 - username-password-separated:
448 credential-id: nordix-cicd-harbor-credentials
449 username: HARBOR_USERNAME
450 password: HARBOR_PASSWORD
452 # wrappers to use for jobs
454 name: nordixinfra-eiffel-github-token
456 - credentials-binding:
457 - username-password-separated:
458 credential-id: nordixinfra-eiffel-username-personal-access-token
459 username: NORDIXINFRA_GITHUB_USERNAME
460 password: NORDIXINFRA_GITHUB_TOKEN
462 # wrappers to use for jobs
464 name: nordix-gerrit-http-api-token
466 - credentials-binding:
467 - username-password-separated:
468 credential-id: nordixinfra-nordix-gerrit-http-api-token
469 username: GERRIT_USER
470 password: GERRIT_API_KEY
472 # timeout wrapper to use for jobs
478 timeout-var: 'BUILD_TIMEOUT'
481 # wrapper to fix jenkins build workspace permissions
483 name: fix-workspace-permissions
490 sudo chown -R $USER:$USER $WORKSPACE || exit 1
496 room: '{slack-channel}'
497 notify-start: '{notify-start}'
498 notify-success: '{notify-success}'
499 notify-failure: '{notify-failure}'
500 notify-back-to-normal: '{notify-back-to-normal}'
502 # property to discard old builds
509 artifact-days-to-keep: 30
510 artifact-num-to-keep: 100