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
136 name: 'wait-pkg-mgr-macro'
139 !include-raw: ./scripts/wait-for-pkg-manager.sh
141 # defaults for job build history
143 name: logrotate-default
148 artifact-days-to-keep: 60
149 artifact-num-to-keep: 200
151 # defaults for SCM, Gerrit and GitHub
156 url: '$GIT_BASE_SSH/$PROJECT'
157 credentials-id: '{ssh-credentials-id}'
159 - 'refs/heads/{branch}'
167 wipe-workspace: '{wipe_workspace}'
171 before: '{clean_before}'
172 choosing-strategy: 'default'
178 url: '$GIT_BASE_SSH/$PROJECT'
179 credentials-id: '{ssh-credentials-id}'
181 - 'refs/heads/{branch}'
189 wipe-workspace: '{wipe_workspace}'
193 before: '{clean_before}'
194 choosing-strategy: 'gerrit'
200 url: 'https://github.com/$PROJECT.git'
210 wipe-workspace: '{wipe_workspace}'
214 before: '{clean_before}'
215 choosing-strategy: 'default'
216 basedir: '{base_dir}'
218 # triggers for Nordix Gerrit
220 name: nordix-gerrit-trigger-patchset-created
223 server-name: 'Nordix Gerrit'
225 - patchset-created-event:
226 exclude-drafts: 'false'
227 exclude-trivial-rebase: 'false'
228 exclude-no-code-change: 'false'
229 - draft-published-event
230 - comment-added-contains-event:
231 comment-contains-value: 'recheck'
232 - comment-added-contains-event:
233 comment-contains-value: 'reverify'
235 - project-compare-type: 'REG_EXP'
236 project-pattern: '{project}'
238 - branch-compare-type: 'ANT'
239 branch-pattern: '**/{branch}'
241 - compare-type: 'ANT'
250 name: nordix-gerrit-trigger-change-merged
253 server-name: 'Nordix Gerrit'
255 - change-merged-event
256 - comment-added-contains-event:
257 comment-contains-value: 'remerge'
259 - project-compare-type: 'ANT'
260 project-pattern: '{project}'
262 - branch-compare-type: 'ANT'
263 branch-pattern: '**/{branch}'
265 - compare-type: 'ANT'
269 name: nordix-gerrit-push-upstream
272 server-name: 'Nordix Gerrit'
274 - comment-added-contains-event:
275 comment-contains-value: 'push-upstream'
277 - project-compare-type: 'ANT'
278 project-pattern: '{project}'
280 - branch-compare-type: 'ANT'
281 branch-pattern: '**/{branch}'
283 - compare-type: 'ANT'
287 name: nordix-gerrit-patchset-created-or-push-upstream
290 server-name: 'Nordix Gerrit'
292 - comment-added-contains-event:
293 comment-contains-value: 'push-upstream'
294 - patchset-created-event:
297 - project-compare-type: 'ANT'
298 project-pattern: '{project}'
300 - branch-compare-type: 'ANT'
301 branch-pattern: '**/{branch}'
303 - compare-type: 'ANT'
306 # triggers for ONAP Gerrit
308 name: onap-gerrit-trigger-change-merged
311 server-name: 'ONAP Gerrit'
313 - change-merged-event
314 - comment-added-contains-event:
315 comment-contains-value: 'remerge'
317 - project-compare-type: 'ANT'
318 project-pattern: '{project}'
320 - branch-compare-type: 'ANT'
321 branch-pattern: '**/{branch}'
323 - compare-type: 'ANT'
328 # triggers for Acumos Gerrit
330 name: acumos-gerrit-trigger-change-merged
333 server-name: 'Acumos Gerrit'
335 - change-merged-event
336 - comment-added-contains-event:
337 comment-contains-value: 'remerge'
339 - project-compare-type: 'ANT'
340 project-pattern: '{project}'
342 - branch-compare-type: 'ANT'
343 branch-pattern: '**/{branch}'
345 - compare-type: 'ANT'
350 # triggers for ODL Gerrit
352 name: odl-gerrit-trigger-change-merged
355 server-name: 'ODL Gerrit'
357 - change-merged-event
358 - comment-added-contains-event:
359 comment-contains-value: 'remerge'
361 - project-compare-type: 'ANT'
362 project-pattern: '{project}'
364 - branch-compare-type: 'ANT'
365 branch-pattern: '**/{branch}'
367 - compare-type: 'ANT'
372 # triggers for OpenDev Gerrit
374 name: opendev-gerrit-trigger-change-merged
377 server-name: 'OpenDev Gerrit'
379 - change-merged-event
380 - comment-added-contains-event:
381 comment-contains-value: 'remerge'
383 - project-compare-type: 'ANT'
384 project-pattern: '{project}'
386 - branch-compare-type: 'ANT'
387 branch-pattern: '**/{branch}'
389 - compare-type: 'ANT'
394 # triggers for ORANSC Gerrit
396 name: oransc-gerrit-trigger-change-merged
399 server-name: 'ORANSC Gerrit'
401 - change-merged-event
402 - comment-added-contains-event:
403 comment-contains-value: 'remerge'
405 - project-compare-type: 'ANT'
406 project-pattern: '{project}'
408 - branch-compare-type: 'ANT'
409 branch-pattern: '**/{branch}'
411 - compare-type: 'ANT'
416 # triggers for Fast Data Project Gerrit
418 name: fdio-gerrit-trigger-change-merged
421 server-name: 'FDio Gerrit'
423 - change-merged-event
424 - comment-added-contains-event:
425 comment-contains-value: 'remerge'
427 - project-compare-type: 'ANT'
428 project-pattern: '{project}'
430 - branch-compare-type: 'ANT'
431 branch-pattern: '**/{branch}'
433 - compare-type: 'ANT'
438 # wrappers to use for jobs
440 name: nordixinfra-jjb-creds-wrapper
442 - credentials-binding:
443 - username-password-separated:
444 credential-id: nordixinfra-jjb-creds
445 username: JJB_USERNAME
446 password: JJB_USERTOKEN
448 # wrappers to use for jobs
450 name: nordixinfra-harbor-creds-wrapper
452 - credentials-binding:
453 - username-password-separated:
454 credential-id: nordix-cicd-harbor-credentials
455 username: HARBOR_USERNAME
456 password: HARBOR_PASSWORD
458 # wrappers to use for jobs
460 name: nordixinfra-eiffel-github-token
462 - credentials-binding:
463 - username-password-separated:
464 credential-id: nordixinfra-eiffel-username-personal-access-token
465 username: NORDIXINFRA_GITHUB_USERNAME
466 password: NORDIXINFRA_GITHUB_TOKEN
468 # wrappers to use for jobs
470 name: nordix-gerrit-http-api-token
472 - credentials-binding:
473 - username-password-separated:
474 credential-id: nordixinfra-nordix-gerrit-http-api-token
475 username: GERRIT_USER
476 password: GERRIT_API_KEY
478 # timeout wrapper to use for jobs
484 timeout-var: 'BUILD_TIMEOUT'
487 # wrapper to fix jenkins build workspace permissions
489 name: fix-workspace-permissions
496 sudo chown -R $USER:$USER $WORKSPACE || exit 1
502 room: '{slack-channel}'
503 notify-start: '{notify-start}'
504 notify-success: '{notify-success}'
505 notify-failure: '{notify-failure}'
506 notify-back-to-normal: '{notify-back-to-normal}'
508 # property to discard old builds
515 artifact-days-to-keep: 30
516 artifact-num-to-keep: 100
519 name: est-ms-teams-rebase-jobs-webhook
521 - office-365-connector:
523 - url: "${EST_MS_TEAMS_NORDIX_REBASE_JOBS_WEBHOOK}"
525 start-notification: true
528 notify-not-built: true
529 notify-unstable: true
531 notify-back-to-normal: true
532 notify-repeated-failure: true