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
32 # Those parameters are used for ONAP java build jobs in Nordix environment.
34 name: nordix-onap-java-build-parameters
38 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
39 description: Java home
42 default: '{mvn_version}'
43 description: Maven version
46 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
47 description: URL to download Maven
50 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
51 description: Path to mvn executable
53 name: MVN_SETTINGS_XML_VERSION
54 default: '{mvn_settings_xml_version}'
55 description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
58 default: '{mvn_params}'
59 description: Maven build parameters
62 default: '{subdirectory}'
63 description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
66 name: onap-gerrit-parameters
71 description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
74 default: https://gerrit.onap.org/r/p
75 description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
78 default: ssh://$GERRIT_USER@gerrit.onap.org:29418
79 description: SSH URL to Project Repo on ONAP Gerrit to clone repo
82 name: acumos-gerrit-parameters
87 description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
90 default: https://gerrit.acumos.org/r/p
91 description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
94 default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
95 description: SSH URL to Project Repo on Acumos Gerrit to clone repo
98 name: odl-gerrit-parameters
103 description: Non-interactive user to stream Gerrit Events on ODL Gerrit
106 default: https://git.opendaylight.org/gerrit
107 description: HTTPS URL to Project Repo on OODL Gerrit to clone repo
110 default: ssh://$GERRIT_USER@git.opendaylight.org:29418
111 description: SSH URL to Project Repo on ODL Gerrit to clone repo
114 name: opendev-gerrit-parameters
119 description: Non-interactive user to stream Gerrit Events on OpenDev Gerrit
122 default: https://review.opendev.org
123 description: HTTPS URL to Project Repo on OpenDev Gerrit to clone repo
126 default: ssh://$GERRIT_USER@review.opendev.org:29418
127 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo
130 name: oransc-gerrit-parameters
135 description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit
138 default: https://gerrit.o-ran-sc.org/r
139 description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo
142 default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
143 description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
146 name: fdio-gerrit-parameters
151 description: Non-interactive user to stream Gerrit Events on Fast Data Project Gerrit
154 default: https://gerrit.fd.io/r
155 description: HTTPS URL to Project Repo on Fast Data Project Gerrit to clone repo
158 default: ssh://$GERRIT_USER@gerrit.fd.io:29418
159 description: SSH URL to Project Repo on Fast Data Project Gerrit to clone repo
161 # Verify job for Geode git tags to make sure there are in agreed format
163 name: 'verify-geode-tag-macro'
166 !include-raw: ./verify_geode_tag.sh
169 name: 'wait-pkg-mgr-macro'
172 !include-raw: ./scripts/wait-for-pkg-manager.sh
174 # defaults for job build history
176 name: logrotate-default
181 artifact-days-to-keep: 60
182 artifact-num-to-keep: 200
184 # defaults for SCM, Gerrit and GitHub
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: 'default'
211 url: '$GIT_BASE_SSH/$PROJECT'
212 credentials-id: '{ssh-credentials-id}'
214 - 'refs/heads/{branch}'
222 wipe-workspace: '{wipe_workspace}'
226 before: '{clean_before}'
227 choosing-strategy: 'gerrit'
233 url: 'https://github.com/$PROJECT.git'
243 wipe-workspace: '{wipe_workspace}'
247 before: '{clean_before}'
248 choosing-strategy: 'default'
249 basedir: '{base_dir}'
251 # triggers for Nordix Gerrit
253 name: nordix-gerrit-trigger-patchset-created
256 server-name: 'Nordix Gerrit'
258 - patchset-created-event:
259 exclude-drafts: 'false'
260 exclude-trivial-rebase: 'false'
261 exclude-no-code-change: 'false'
262 - draft-published-event
263 - comment-added-contains-event:
264 comment-contains-value: 'recheck'
265 - comment-added-contains-event:
266 comment-contains-value: 'reverify'
268 - project-compare-type: 'REG_EXP'
269 project-pattern: '{project}'
271 - branch-compare-type: 'ANT'
272 branch-pattern: '**/{branch}'
274 - compare-type: 'ANT'
283 name: nordix-gerrit-trigger-change-merged
286 server-name: 'Nordix Gerrit'
288 - change-merged-event
289 - comment-added-contains-event:
290 comment-contains-value: 'remerge'
292 - project-compare-type: 'ANT'
293 project-pattern: '{project}'
295 - branch-compare-type: 'ANT'
296 branch-pattern: '**/{branch}'
298 - compare-type: 'ANT'
302 name: nordix-gerrit-push-upstream
305 server-name: 'Nordix Gerrit'
307 - comment-added-contains-event:
308 comment-contains-value: 'push-upstream'
310 - project-compare-type: 'ANT'
311 project-pattern: '{project}'
313 - branch-compare-type: 'ANT'
314 branch-pattern: '**/{branch}'
316 - compare-type: 'ANT'
320 name: nordix-gerrit-patchset-created-or-push-upstream
323 server-name: 'Nordix Gerrit'
325 - comment-added-contains-event:
326 comment-contains-value: 'push-upstream'
327 - patchset-created-event:
330 - project-compare-type: 'ANT'
331 project-pattern: '{project}'
333 - branch-compare-type: 'ANT'
334 branch-pattern: '**/{branch}'
336 - compare-type: 'ANT'
339 # triggers for ONAP Gerrit
341 name: onap-gerrit-trigger-change-merged
344 server-name: 'ONAP 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 Acumos Gerrit
363 name: acumos-gerrit-trigger-change-merged
366 server-name: 'Acumos 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 ODL Gerrit
385 name: odl-gerrit-trigger-change-merged
388 server-name: 'ODL 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 OpenDev Gerrit
407 name: opendev-gerrit-trigger-change-merged
410 server-name: 'OpenDev 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 ORANSC Gerrit
429 name: oransc-gerrit-trigger-change-merged
432 server-name: 'ORANSC 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 # triggers for Fast Data Project Gerrit
451 name: fdio-gerrit-trigger-change-merged
454 server-name: 'FDio Gerrit'
456 - change-merged-event
457 - comment-added-contains-event:
458 comment-contains-value: 'remerge'
460 - project-compare-type: 'ANT'
461 project-pattern: '{project}'
463 - branch-compare-type: 'ANT'
464 branch-pattern: '**/{branch}'
466 - compare-type: 'ANT'
471 # wrappers to use for jobs
473 name: nordixinfra-jjb-creds-wrapper
475 - credentials-binding:
476 - username-password-separated:
477 credential-id: nordixinfra-jjb-creds
478 username: JJB_USERNAME
479 password: JJB_USERTOKEN
481 # wrappers to use for jobs
483 name: nordixinfra-harbor-creds-wrapper
485 - credentials-binding:
486 - username-password-separated:
487 credential-id: nordix-cicd-harbor-credentials
488 username: HARBOR_USERNAME
489 password: HARBOR_PASSWORD
491 # wrappers to use for jobs
493 name: nordixinfra-eiffel-github-token
495 - credentials-binding:
496 - username-password-separated:
497 credential-id: nordixinfra-eiffel-username-personal-access-token
498 username: NORDIXINFRA_GITHUB_USERNAME
499 password: NORDIXINFRA_GITHUB_TOKEN
501 # wrappers to use for jobs
503 name: nordix-gerrit-http-api-token
505 - credentials-binding:
506 - username-password-separated:
507 credential-id: nordixinfra-nordix-gerrit-http-api-token
508 username: GERRIT_USER
509 password: GERRIT_API_KEY
511 # timeout wrapper to use for jobs
517 timeout-var: 'BUILD_TIMEOUT'
520 # wrapper to fix jenkins build workspace permissions
522 name: fix-workspace-permissions
529 sudo chown -R $USER:$USER $WORKSPACE || exit 1
535 room: '{slack-channel}'
536 notify-start: '{notify-start}'
537 notify-success: '{notify-success}'
538 notify-failure: '{notify-failure}'
539 notify-back-to-normal: '{notify-back-to-normal}'
541 # property to discard old builds
548 artifact-days-to-keep: 30
549 artifact-num-to-keep: 100
552 name: est-ms-teams-rebase-jobs-webhook
554 - office-365-connector:
556 - url: "${EST_MS_TEAMS_NORDIX_REBASE_JOBS_WEBHOOK}"
558 start-notification: true
561 notify-not-built: true
562 notify-unstable: true
564 notify-back-to-normal: true
565 notify-repeated-failure: true