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
16 default: registry.nordix.org
17 description: Nordix Container Image Registry
19 # these parameters are used for setting the Gerrit Project on Nordix
21 name: project-parameters
26 description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
30 description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
32 # these parameters are used for streaming changes from various Gerrit Systems
34 name: nordix-gerrit-parameters
39 description: Non-interactive user to stream Gerrit Events on Nordix Gerrit
42 default: https://gerrit.nordix.org
43 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
46 default: ssh://$GERRIT_USER@gerrit.nordix.org:29418
47 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
50 name: onap-gerrit-parameters
55 description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
58 default: https://gerrit.onap.org/r/p
59 description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
62 default: ssh://$GERRIT_USER@gerrit.onap.org:29418
63 description: SSH URL to Project Repo on ONAP Gerrit to clone repo
66 name: acumos-gerrit-parameters
71 description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
74 default: https://gerrit.acumos.org/r/p
75 description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
78 default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
79 description: SSH URL to Project Repo on Acumos Gerrit to clone repo
82 name: odl-gerrit-parameters
87 description: Non-interactive user to stream Gerrit Events on ODL Gerrit
90 default: https://git.opendaylight.org/gerrit
91 description: HTTPS URL to Project Repo on OODL Gerrit to clone repo
94 default: ssh://$GERRIT_USER@git.opendaylight.org:29418
95 description: SSH URL to Project Repo on ODL Gerrit to clone repo
98 name: opendev-gerrit-parameters
103 description: Non-interactive user to stream Gerrit Events on OpenDev Gerrit
106 default: https://review.opendev.org
107 description: HTTPS URL to Project Repo on OpenDev Gerrit to clone repo
110 default: ssh://$GERRIT_USER@review.opendev.org:29418
111 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo
114 name: oransc-gerrit-parameters
119 description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit
122 default: https://gerrit.o-ran-sc.org/r
123 description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo
126 default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
127 description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
130 name: fdio-gerrit-parameters
135 description: Non-interactive user to stream Gerrit Events on Fast Data Project Gerrit
138 default: https://gerrit.fd.io/r
139 description: HTTPS URL to Project Repo on Fast Data Project Gerrit to clone repo
142 default: ssh://$GERRIT_USER@gerrit.fd.io:29418
143 description: SSH URL to Project Repo on Fast Data Project Gerrit to clone repo
145 # Verify job for Geode git tags to make sure there are in agreed format
147 name: 'verify-geode-tag-macro'
150 !include-raw: ./verify_geode_tag.sh
152 # defaults for job build history
154 name: logrotate-default
159 artifact-days-to-keep: 60
160 artifact-num-to-keep: 200
162 # defaults for SCM, Gerrit and GitHub
167 url: '$GIT_BASE_SSH/$PROJECT'
168 credentials-id: '{ssh-credentials-id}'
170 - 'refs/heads/{branch}'
178 wipe-workspace: '{wipe_workspace}'
182 before: '{clean_before}'
183 choosing-strategy: 'default'
189 url: '$GIT_BASE_SSH/$PROJECT'
190 credentials-id: '{ssh-credentials-id}'
192 - 'refs/heads/{branch}'
200 wipe-workspace: '{wipe_workspace}'
204 before: '{clean_before}'
205 choosing-strategy: 'gerrit'
211 url: 'https://github.com/$PROJECT.git'
221 wipe-workspace: '{wipe_workspace}'
225 before: '{clean_before}'
226 choosing-strategy: 'default'
227 basedir: '{base_dir}'
229 # triggers for Nordix Gerrit
231 name: nordix-gerrit-trigger-patchset-created
234 server-name: 'Nordix Gerrit'
236 - patchset-created-event:
237 exclude-drafts: 'false'
238 exclude-trivial-rebase: 'false'
239 exclude-no-code-change: 'false'
240 - draft-published-event
241 - comment-added-contains-event:
242 comment-contains-value: 'recheck'
243 - comment-added-contains-event:
244 comment-contains-value: 'reverify'
246 - project-compare-type: 'REG_EXP'
247 project-pattern: '{project}'
249 - branch-compare-type: 'ANT'
250 branch-pattern: '**/{branch}'
252 - compare-type: 'ANT'
261 name: nordix-gerrit-trigger-change-merged
264 server-name: 'Nordix Gerrit'
266 - change-merged-event
267 - comment-added-contains-event:
268 comment-contains-value: 'remerge'
270 - project-compare-type: 'ANT'
271 project-pattern: '{project}'
273 - branch-compare-type: 'ANT'
274 branch-pattern: '**/{branch}'
276 - compare-type: 'ANT'
280 name: nordix-gerrit-push-upstream
283 server-name: 'Nordix Gerrit'
285 - comment-added-contains-event:
286 comment-contains-value: 'push-upstream'
288 - project-compare-type: 'ANT'
289 project-pattern: '{project}'
291 - branch-compare-type: 'ANT'
292 branch-pattern: '**/{branch}'
294 - compare-type: 'ANT'
298 name: nordix-gerrit-patchset-created-or-push-upstream
301 server-name: 'Nordix Gerrit'
303 - comment-added-contains-event:
304 comment-contains-value: 'push-upstream'
305 - patchset-created-event:
308 - project-compare-type: 'ANT'
309 project-pattern: '{project}'
311 - branch-compare-type: 'ANT'
312 branch-pattern: '**/{branch}'
314 - compare-type: 'ANT'
317 # triggers for ONAP Gerrit
319 name: onap-gerrit-trigger-change-merged
322 server-name: 'ONAP Gerrit'
324 - change-merged-event
325 - comment-added-contains-event:
326 comment-contains-value: 'remerge'
328 - project-compare-type: 'ANT'
329 project-pattern: '{project}'
331 - branch-compare-type: 'ANT'
332 branch-pattern: '**/{branch}'
334 - compare-type: 'ANT'
339 # triggers for Acumos Gerrit
341 name: acumos-gerrit-trigger-change-merged
344 server-name: 'Acumos Gerrit'
346 - change-merged-event
347 - comment-added-contains-event:
348 comment-contains-value: 'remerge'
350 - project-compare-type: 'ANT'
351 project-pattern: '{project}'
353 - branch-compare-type: 'ANT'
354 branch-pattern: '**/{branch}'
356 - compare-type: 'ANT'
361 # triggers for ODL Gerrit
363 name: odl-gerrit-trigger-change-merged
366 server-name: 'ODL Gerrit'
368 - change-merged-event
369 - comment-added-contains-event:
370 comment-contains-value: 'remerge'
372 - project-compare-type: 'ANT'
373 project-pattern: '{project}'
375 - branch-compare-type: 'ANT'
376 branch-pattern: '**/{branch}'
378 - compare-type: 'ANT'
383 # triggers for OpenDev Gerrit
385 name: opendev-gerrit-trigger-change-merged
388 server-name: 'OpenDev Gerrit'
390 - change-merged-event
391 - comment-added-contains-event:
392 comment-contains-value: 'remerge'
394 - project-compare-type: 'ANT'
395 project-pattern: '{project}'
397 - branch-compare-type: 'ANT'
398 branch-pattern: '**/{branch}'
400 - compare-type: 'ANT'
405 # triggers for ORANSC Gerrit
407 name: oransc-gerrit-trigger-change-merged
410 server-name: 'ORANSC Gerrit'
412 - change-merged-event
413 - comment-added-contains-event:
414 comment-contains-value: 'remerge'
416 - project-compare-type: 'ANT'
417 project-pattern: '{project}'
419 - branch-compare-type: 'ANT'
420 branch-pattern: '**/{branch}'
422 - compare-type: 'ANT'
427 # triggers for Fast Data Project Gerrit
429 name: fdio-gerrit-trigger-change-merged
432 server-name: 'FDio Gerrit'
434 - change-merged-event
435 - comment-added-contains-event:
436 comment-contains-value: 'remerge'
438 - project-compare-type: 'ANT'
439 project-pattern: '{project}'
441 - branch-compare-type: 'ANT'
442 branch-pattern: '**/{branch}'
444 - compare-type: 'ANT'
449 # wrappers to use for jobs
451 name: nordixinfra-jjb-creds-wrapper
453 - credentials-binding:
454 - username-password-separated:
455 credential-id: nordixinfra-jjb-creds
456 username: JJB_USERNAME
457 password: JJB_USERTOKEN
459 # wrappers to use for jobs
461 name: nordixinfra-harbor-creds-wrapper
463 - credentials-binding:
464 - username-password-separated:
465 credential-id: nordix-cicd-harbor-credentials
466 username: HARBOR_USERNAME
467 password: HARBOR_PASSWORD
469 # timeout wrapper to use for jobs
475 timeout-var: 'BUILD_TIMEOUT'
478 # wrapper to fix jenkins build workspace permissions
480 name: fix-workspace-permissions
487 sudo chown -R $USER:$USER $WORKSPACE || exit 1
493 room: '{slack-channel}'
494 notify-start: '{notify-start}'
495 notify-success: '{notify-success}'
496 notify-failure: '{notify-failure}'
497 notify-back-to-normal: '{notify-back-to-normal}'
499 # property to discard old builds
506 artifact-days-to-keep: 30
507 artifact-num-to-keep: 100