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
129 # Verify job for Geode git tags to make sure there are in agreed format
131 name: 'verify-geode-tag-macro'
134 !include-raw: ./verify_geode_tag.sh
136 # defaults for job build history
138 name: logrotate-default
143 artifact-days-to-keep: 60
144 artifact-num-to-keep: 200
146 # defaults for SCM, Gerrit and GitHub
151 url: '$GIT_BASE_SSH/$PROJECT'
152 credentials-id: '{ssh-credentials-id}'
154 - 'refs/heads/{branch}'
162 wipe-workspace: '{wipe_workspace}'
166 before: '{clean_before}'
167 choosing-strategy: 'default'
173 url: '$GIT_BASE_SSH/$PROJECT'
174 credentials-id: '{ssh-credentials-id}'
176 - 'refs/heads/{branch}'
184 wipe-workspace: '{wipe_workspace}'
188 before: '{clean_before}'
189 choosing-strategy: 'gerrit'
195 url: 'https://github.com/$PROJECT.git'
205 wipe-workspace: '{wipe_workspace}'
209 before: '{clean_before}'
210 choosing-strategy: 'default'
211 basedir: '{base_dir}'
213 # triggers for Nordix Gerrit
215 name: nordix-gerrit-trigger-patchset-created
218 server-name: 'Nordix Gerrit'
220 - patchset-created-event:
221 exclude-drafts: 'false'
222 exclude-trivial-rebase: 'false'
223 exclude-no-code-change: 'false'
224 - draft-published-event
225 - comment-added-contains-event:
226 comment-contains-value: 'recheck'
227 - comment-added-contains-event:
228 comment-contains-value: 'reverify'
230 - project-compare-type: 'REG_EXP'
231 project-pattern: '{project}'
233 - branch-compare-type: 'ANT'
234 branch-pattern: '**/{branch}'
236 - compare-type: 'ANT'
245 name: nordix-gerrit-trigger-change-merged
248 server-name: 'Nordix Gerrit'
250 - change-merged-event
251 - comment-added-contains-event:
252 comment-contains-value: 'remerge'
254 - project-compare-type: 'ANT'
255 project-pattern: '{project}'
257 - branch-compare-type: 'ANT'
258 branch-pattern: '**/{branch}'
260 - compare-type: 'ANT'
264 name: nordix-gerrit-push-upstream
267 server-name: 'Nordix Gerrit'
269 - comment-added-contains-event:
270 comment-contains-value: 'push-upstream'
272 - project-compare-type: 'ANT'
273 project-pattern: '{project}'
275 - branch-compare-type: 'ANT'
276 branch-pattern: '**/{branch}'
278 - compare-type: 'ANT'
282 name: nordix-gerrit-patchset-created-or-push-upstream
285 server-name: 'Nordix Gerrit'
287 - comment-added-contains-event:
288 comment-contains-value: 'push-upstream'
289 - patchset-created-event:
292 - project-compare-type: 'ANT'
293 project-pattern: '{project}'
295 - branch-compare-type: 'ANT'
296 branch-pattern: '**/{branch}'
298 - compare-type: 'ANT'
301 # triggers for ONAP Gerrit
303 name: onap-gerrit-trigger-change-merged
306 server-name: 'ONAP Gerrit'
308 - change-merged-event
309 - comment-added-contains-event:
310 comment-contains-value: 'remerge'
312 - project-compare-type: 'ANT'
313 project-pattern: '{project}'
315 - branch-compare-type: 'ANT'
316 branch-pattern: '**/{branch}'
318 - compare-type: 'ANT'
323 # triggers for Acumos Gerrit
325 name: acumos-gerrit-trigger-change-merged
328 server-name: 'Acumos Gerrit'
330 - change-merged-event
331 - comment-added-contains-event:
332 comment-contains-value: 'remerge'
334 - project-compare-type: 'ANT'
335 project-pattern: '{project}'
337 - branch-compare-type: 'ANT'
338 branch-pattern: '**/{branch}'
340 - compare-type: 'ANT'
345 # triggers for ODL Gerrit
347 name: odl-gerrit-trigger-change-merged
350 server-name: 'ODL Gerrit'
352 - change-merged-event
353 - comment-added-contains-event:
354 comment-contains-value: 'remerge'
356 - project-compare-type: 'ANT'
357 project-pattern: '{project}'
359 - branch-compare-type: 'ANT'
360 branch-pattern: '**/{branch}'
362 - compare-type: 'ANT'
367 # triggers for OpenDev Gerrit
369 name: opendev-gerrit-trigger-change-merged
372 server-name: 'OpenDev Gerrit'
374 - change-merged-event
375 - comment-added-contains-event:
376 comment-contains-value: 'remerge'
378 - project-compare-type: 'ANT'
379 project-pattern: '{project}'
381 - branch-compare-type: 'ANT'
382 branch-pattern: '**/{branch}'
384 - compare-type: 'ANT'
389 # triggers for ORANSC Gerrit
391 name: oransc-gerrit-trigger-change-merged
394 server-name: 'ORANSC Gerrit'
396 - change-merged-event
397 - comment-added-contains-event:
398 comment-contains-value: 'remerge'
400 - project-compare-type: 'ANT'
401 project-pattern: '{project}'
403 - branch-compare-type: 'ANT'
404 branch-pattern: '**/{branch}'
406 - compare-type: 'ANT'
411 # wrappers to use for jobs
413 name: nordixinfra-jjb-creds-wrapper
415 - credentials-binding:
416 - username-password-separated:
417 credential-id: nordixinfra-jjb-creds
418 username: JJB_USERNAME
419 password: JJB_USERTOKEN
421 # wrappers to use for jobs
423 name: nordixinfra-harbor-creds-wrapper
425 - credentials-binding:
426 - username-password-separated:
427 credential-id: nordix-cicd-harbor-credentials
428 username: HARBOR_USERNAME
429 password: HARBOR_PASSWORD
431 # timeout wrapper to use for jobs
437 timeout-var: 'BUILD_TIMEOUT'
440 # wrapper to fix jenkins build workspace permissions
442 name: fix-workspace-permissions
449 sudo chown -R $USER:$USER $WORKSPACE || exit 1
455 room: '{slack-channel}'
456 notify-start: '{notify-start}'
457 notify-success: '{notify-success}'
458 notify-failure: '{notify-failure}'
459 notify-back-to-normal: '{notify-back-to-normal}'
461 # property to discard old builds
468 artifact-days-to-keep: 30
469 artifact-num-to-keep: 100