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
15 # these parameters are used for setting the Gerrit Project on Nordix
17 name: project-parameters
22 description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
26 description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
28 # these parameters are used for streaming changes from various Gerrit Systems
30 name: nordix-gerrit-parameters
35 description: Non-interactive user to stream Gerrit Events on Nordix Gerrit
38 default: https://gerrit.nordix.org
39 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
42 default: ssh://$GERRIT_USER@gerrit.nordix.org:29418
43 description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo
46 name: onap-gerrit-parameters
51 description: Non-interactive user to stream Gerrit Events on ONAP Gerrit
54 default: https://gerrit.onap.org/r/p
55 description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo
58 default: ssh://$GERRIT_USER@gerrit.onap.org:29418
59 description: SSH URL to Project Repo on ONAP Gerrit to clone repo
62 name: acumos-gerrit-parameters
67 description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
70 default: https://gerrit.acumos.org/r/p
71 description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
74 default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
75 description: SSH URL to Project Repo on Acumos Gerrit to clone repo
78 name: odl-gerrit-parameters
83 description: Non-interactive user to stream Gerrit Events on ODL Gerrit
86 default: https://git.opendaylight.org/gerrit
87 description: HTTPS URL to Project Repo on OODL Gerrit to clone repo
90 default: ssh://$GERRIT_USER@git.opendaylight.org:29418
91 description: SSH URL to Project Repo on ODL Gerrit to clone repo
94 name: opendev-gerrit-parameters
99 description: Non-interactive user to stream Gerrit Events on OpenDev Gerrit
102 default: https://review.opendev.org
103 description: HTTPS URL to Project Repo on OpenDev Gerrit to clone repo
106 default: ssh://$GERRIT_USER@review.opendev.org:29418
107 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo
110 name: oransc-gerrit-parameters
115 description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit
118 default: https://gerrit.o-ran-sc.org/r
119 description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo
122 default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418
123 description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo
125 # defaults for job build history
127 name: logrotate-default
132 artifact-days-to-keep: 60
133 artifact-num-to-keep: 200
135 # defaults for SCM, Gerrit and GitHub
140 url: '$GIT_BASE_SSH/$PROJECT'
141 credentials-id: '{ssh-credentials-id}'
143 - 'refs/heads/{branch}'
151 wipe-workspace: '{wipe_workspace}'
155 before: '{clean_before}'
156 choosing-strategy: 'default'
162 url: '$GIT_BASE_SSH/$PROJECT'
163 credentials-id: '{ssh-credentials-id}'
165 - 'refs/heads/{branch}'
173 wipe-workspace: '{wipe_workspace}'
177 before: '{clean_before}'
178 choosing-strategy: 'gerrit'
184 url: 'https://github.com/$PROJECT.git'
194 wipe-workspace: '{wipe_workspace}'
198 before: '{clean_before}'
199 choosing-strategy: 'default'
200 basedir: '{base_dir}'
202 # triggers for Nordix Gerrit
204 name: nordix-gerrit-trigger-patchset-created
207 server-name: 'Nordix Gerrit'
209 - patchset-created-event:
210 exclude-drafts: 'false'
211 exclude-trivial-rebase: 'false'
212 exclude-no-code-change: 'false'
213 - draft-published-event
214 - comment-added-contains-event:
215 comment-contains-value: 'recheck'
216 - comment-added-contains-event:
217 comment-contains-value: 'reverify'
219 - project-compare-type: 'REG_EXP'
220 project-pattern: '{project}'
222 - branch-compare-type: 'ANT'
223 branch-pattern: '**/{branch}'
225 - compare-type: 'ANT'
234 name: nordix-gerrit-trigger-change-merged
237 server-name: 'Nordix Gerrit'
239 - change-merged-event
240 - comment-added-contains-event:
241 comment-contains-value: 'remerge'
243 - project-compare-type: 'ANT'
244 project-pattern: '{project}'
246 - branch-compare-type: 'ANT'
247 branch-pattern: '**/{branch}'
249 - compare-type: 'ANT'
253 name: nordix-gerrit-push-upstream
256 server-name: 'Nordix Gerrit'
258 - comment-added-contains-event:
259 comment-contains-value: 'push-upstream'
261 - project-compare-type: 'ANT'
262 project-pattern: '{project}'
264 - branch-compare-type: 'ANT'
265 branch-pattern: '**/{branch}'
267 - compare-type: 'ANT'
271 name: nordix-gerrit-patchset-created-or-push-upstream
274 server-name: 'Nordix Gerrit'
276 - comment-added-contains-event:
277 comment-contains-value: 'push-upstream'
278 - patchset-created-event:
281 - project-compare-type: 'ANT'
282 project-pattern: '{project}'
284 - branch-compare-type: 'ANT'
285 branch-pattern: '**/{branch}'
287 - compare-type: 'ANT'
290 # triggers for ONAP Gerrit
292 name: onap-gerrit-trigger-change-merged
295 server-name: 'ONAP Gerrit'
297 - change-merged-event
298 - comment-added-contains-event:
299 comment-contains-value: 'remerge'
301 - project-compare-type: 'ANT'
302 project-pattern: '{project}'
304 - branch-compare-type: 'ANT'
305 branch-pattern: '**/{branch}'
307 - compare-type: 'ANT'
312 # triggers for Acumos Gerrit
314 name: acumos-gerrit-trigger-change-merged
317 server-name: 'Acumos Gerrit'
319 - change-merged-event
320 - comment-added-contains-event:
321 comment-contains-value: 'remerge'
323 - project-compare-type: 'ANT'
324 project-pattern: '{project}'
326 - branch-compare-type: 'ANT'
327 branch-pattern: '**/{branch}'
329 - compare-type: 'ANT'
334 # triggers for ODL Gerrit
336 name: odl-gerrit-trigger-change-merged
339 server-name: 'ODL Gerrit'
341 - change-merged-event
342 - comment-added-contains-event:
343 comment-contains-value: 'remerge'
345 - project-compare-type: 'ANT'
346 project-pattern: '{project}'
348 - branch-compare-type: 'ANT'
349 branch-pattern: '**/{branch}'
351 - compare-type: 'ANT'
356 # triggers for OpenDev Gerrit
358 name: opendev-gerrit-trigger-change-merged
361 server-name: 'OpenDev Gerrit'
363 - change-merged-event
364 - comment-added-contains-event:
365 comment-contains-value: 'remerge'
367 - project-compare-type: 'ANT'
368 project-pattern: '{project}'
370 - branch-compare-type: 'ANT'
371 branch-pattern: '**/{branch}'
373 - compare-type: 'ANT'
378 # triggers for ORANSC Gerrit
380 name: oransc-gerrit-trigger-change-merged
383 server-name: 'ORANSC Gerrit'
385 - change-merged-event
386 - comment-added-contains-event:
387 comment-contains-value: 'remerge'
389 - project-compare-type: 'ANT'
390 project-pattern: '{project}'
392 - branch-compare-type: 'ANT'
393 branch-pattern: '**/{branch}'
395 - compare-type: 'ANT'
400 # wrappers to use for jobs
402 name: nordixinfra-jjb-creds-wrapper
404 - credentials-binding:
405 - username-password-separated:
406 credential-id: nordixinfra-jjb-creds
407 username: JJB_USERNAME
408 password: JJB_USERTOKEN
410 # timeout wrapper to use for jobs
416 timeout-var: 'BUILD_TIMEOUT'
419 # wrapper to fix jenkins build workspace permissions
421 name: fix-workspace-permissions
428 sudo chown -R $USER:$USER $WORKSPACE || exit 1
434 room: '{slack-channel}'
435 notify-start: '{notify-start}'
436 notify-success: '{notify-success}'
437 notify-failure: '{notify-failure}'
438 notify-back-to-normal: '{notify-back-to-normal}'
440 # property to discard old builds
447 artifact-days-to-keep: 30
448 artifact-num-to-keep: 100