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 and Gerrit
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'
164 # triggers for Nordix Gerrit
166 name: nordix-gerrit-trigger-patchset-created
169 server-name: 'Nordix Gerrit'
171 - patchset-created-event:
172 exclude-drafts: 'false'
173 exclude-trivial-rebase: 'false'
174 exclude-no-code-change: 'false'
175 - draft-published-event
176 - comment-added-contains-event:
177 comment-contains-value: 'recheck'
178 - comment-added-contains-event:
179 comment-contains-value: 'reverify'
181 - project-compare-type: 'REG_EXP'
182 project-pattern: '{project}'
184 - branch-compare-type: 'ANT'
185 branch-pattern: '**/{branch}'
187 - compare-type: 'ANT'
196 name: nordix-gerrit-trigger-change-merged
199 server-name: 'Nordix Gerrit'
201 - change-merged-event
202 - comment-added-contains-event:
203 comment-contains-value: 'remerge'
205 - project-compare-type: 'ANT'
206 project-pattern: '{project}'
208 - branch-compare-type: 'ANT'
209 branch-pattern: '**/{branch}'
211 - compare-type: 'ANT'
215 name: nordix-gerrit-push-upstream
218 server-name: 'Nordix Gerrit'
220 - comment-added-contains-event:
221 comment-contains-value: 'push-upstream'
223 - project-compare-type: 'ANT'
224 project-pattern: '{project}'
226 - branch-compare-type: 'ANT'
227 branch-pattern: '**/{branch}'
229 - compare-type: 'ANT'
233 name: nordix-gerrit-patchset-created-or-push-upstream
236 server-name: 'Nordix Gerrit'
238 - comment-added-contains-event:
239 comment-contains-value: 'push-upstream'
240 - patchset-created-event:
243 - project-compare-type: 'ANT'
244 project-pattern: '{project}'
246 - branch-compare-type: 'ANT'
247 branch-pattern: '**/{branch}'
249 - compare-type: 'ANT'
252 # triggers for ONAP Gerrit
254 name: onap-gerrit-trigger-change-merged
257 server-name: 'ONAP Gerrit'
259 - change-merged-event
260 - comment-added-contains-event:
261 comment-contains-value: 'remerge'
263 - project-compare-type: 'ANT'
264 project-pattern: '{project}'
266 - branch-compare-type: 'ANT'
267 branch-pattern: '**/{branch}'
269 - compare-type: 'ANT'
274 # triggers for Acumos Gerrit
276 name: acumos-gerrit-trigger-change-merged
279 server-name: 'Acumos 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 ODL Gerrit
298 name: odl-gerrit-trigger-change-merged
301 server-name: 'ODL 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 OpenDev Gerrit
320 name: opendev-gerrit-trigger-change-merged
323 server-name: 'OpenDev 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 # wrappers to use for jobs
342 name: nordixinfra-jjb-creds-wrapper
344 - credentials-binding:
345 - username-password-separated:
346 credential-id: nordixinfra-jjb-creds
347 username: JJB_USERNAME
348 password: JJB_USERTOKEN
350 # timeout wrapper to use for jobs
356 timeout-var: 'BUILD_TIMEOUT'
359 # wrapper to fix jenkins build workspace permissions
361 name: fix-workspace-permissions
368 sudo chown -R $USER:$USER $WORKSPACE || exit 1
374 room: '{slack-channel}'
376 notify-backtonormal: True
378 # property to discard old builds
385 artifact-days-to-keep: 30
386 artifact-num-to-keep: 100