2 # these parameters are used for infra related variables
8 default: https://git.openstack.org/openstack-infra/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
109 # defaults for job build history
111 name: logrotate-default
116 artifact-days-to-keep: 60
117 artifact-num-to-keep: 200
119 # defaults for SCM, Gerrit and GitHub
124 url: '$GIT_BASE_SSH/$PROJECT'
125 credentials-id: '{ssh-credentials-id}'
127 - 'refs/heads/{branch}'
135 wipe-workspace: '{wipe_workspace}'
139 before: '{clean_before}'
140 choosing-strategy: 'default'
146 url: '$GIT_BASE_SSH/$PROJECT'
147 credentials-id: '{ssh-credentials-id}'
149 - 'refs/heads/{branch}'
157 wipe-workspace: '{wipe_workspace}'
161 before: '{clean_before}'
162 choosing-strategy: 'gerrit'
168 url: 'https://github.com/$PROJECT.git'
178 wipe-workspace: '{wipe_workspace}'
182 before: '{clean_before}'
183 choosing-strategy: 'default'
184 basedir: '{base_dir}'
186 # triggers for Nordix Gerrit
188 name: nordix-gerrit-trigger-patchset-created
191 server-name: 'Nordix Gerrit'
193 - patchset-created-event:
194 exclude-drafts: 'false'
195 exclude-trivial-rebase: 'false'
196 exclude-no-code-change: 'false'
197 - draft-published-event
198 - comment-added-contains-event:
199 comment-contains-value: 'recheck'
200 - comment-added-contains-event:
201 comment-contains-value: 'reverify'
203 - project-compare-type: 'REG_EXP'
204 project-pattern: '{project}'
206 - branch-compare-type: 'ANT'
207 branch-pattern: '**/{branch}'
209 - compare-type: 'ANT'
218 name: nordix-gerrit-trigger-change-merged
221 server-name: 'Nordix Gerrit'
223 - change-merged-event
224 - comment-added-contains-event:
225 comment-contains-value: 'remerge'
227 - project-compare-type: 'ANT'
228 project-pattern: '{project}'
230 - branch-compare-type: 'ANT'
231 branch-pattern: '**/{branch}'
233 - compare-type: 'ANT'
237 name: nordix-gerrit-push-upstream
240 server-name: 'Nordix Gerrit'
242 - comment-added-contains-event:
243 comment-contains-value: 'push-upstream'
245 - project-compare-type: 'ANT'
246 project-pattern: '{project}'
248 - branch-compare-type: 'ANT'
249 branch-pattern: '**/{branch}'
251 - compare-type: 'ANT'
255 name: nordix-gerrit-patchset-created-or-push-upstream
258 server-name: 'Nordix Gerrit'
260 - comment-added-contains-event:
261 comment-contains-value: 'push-upstream'
262 - patchset-created-event:
265 - project-compare-type: 'ANT'
266 project-pattern: '{project}'
268 - branch-compare-type: 'ANT'
269 branch-pattern: '**/{branch}'
271 - compare-type: 'ANT'
274 # triggers for ONAP Gerrit
276 name: onap-gerrit-trigger-change-merged
279 server-name: 'ONAP Gerrit'
281 - change-merged-event
282 - comment-added-contains-event:
283 comment-contains-value: 'remerge'
285 - project-compare-type: 'ANT'
286 project-pattern: '{project}'
288 - branch-compare-type: 'ANT'
289 branch-pattern: '**/{branch}'
291 - compare-type: 'ANT'
296 # triggers for Acumos Gerrit
298 name: acumos-gerrit-trigger-change-merged
301 server-name: 'Acumos Gerrit'
303 - change-merged-event
304 - comment-added-contains-event:
305 comment-contains-value: 'remerge'
307 - project-compare-type: 'ANT'
308 project-pattern: '{project}'
310 - branch-compare-type: 'ANT'
311 branch-pattern: '**/{branch}'
313 - compare-type: 'ANT'
318 # triggers for ODL Gerrit
320 name: odl-gerrit-trigger-change-merged
323 server-name: 'ODL Gerrit'
325 - change-merged-event
326 - comment-added-contains-event:
327 comment-contains-value: 'remerge'
329 - project-compare-type: 'ANT'
330 project-pattern: '{project}'
332 - branch-compare-type: 'ANT'
333 branch-pattern: '**/{branch}'
335 - compare-type: 'ANT'
340 # triggers for OpenDev Gerrit
342 name: opendev-gerrit-trigger-change-merged
345 server-name: 'OpenDev Gerrit'
347 - change-merged-event
348 - comment-added-contains-event:
349 comment-contains-value: 'remerge'
351 - project-compare-type: 'ANT'
352 project-pattern: '{project}'
354 - branch-compare-type: 'ANT'
355 branch-pattern: '**/{branch}'
357 - compare-type: 'ANT'
362 # wrappers to use for jobs
364 name: nordixinfra-jjb-creds-wrapper
366 - credentials-binding:
367 - username-password-separated:
368 credential-id: nordixinfra-jjb-creds
369 username: JJB_USERNAME
370 password: JJB_USERTOKEN
372 # timeout wrapper to use for jobs
378 timeout-var: 'BUILD_TIMEOUT'
381 # wrapper to fix jenkins build workspace permissions
383 name: fix-workspace-permissions
390 sudo chown -R $USER:$USER $WORKSPACE || exit 1
396 room: '{slack-channel}'
398 notify-back-to-normal: true
400 # property to discard old builds
407 artifact-days-to-keep: 30
408 artifact-num-to-keep: 100