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}'
137 choosing-strategy: 'default'
143 url: '$GIT_BASE_SSH/$PROJECT'
144 credentials-id: '{ssh-credentials-id}'
146 - 'refs/heads/{branch}'
156 choosing-strategy: 'gerrit'
158 # triggers for Nordix Gerrit
160 name: nordix-gerrit-trigger-patchset-created
163 server-name: 'Nordix Gerrit'
165 - patchset-created-event:
166 exclude-drafts: 'false'
167 exclude-trivial-rebase: 'false'
168 exclude-no-code-change: 'false'
169 - draft-published-event
170 - comment-added-contains-event:
171 comment-contains-value: 'recheck'
172 - comment-added-contains-event:
173 comment-contains-value: 'reverify'
175 - project-compare-type: 'REG_EXP'
176 project-pattern: '{project}'
178 - branch-compare-type: 'ANT'
179 branch-pattern: '**/{branch}'
181 - compare-type: 'ANT'
190 name: nordix-gerrit-trigger-change-merged
193 server-name: 'Nordix Gerrit'
195 - change-merged-event
196 - comment-added-contains-event:
197 comment-contains-value: 'remerge'
199 - project-compare-type: 'ANT'
200 project-pattern: '{project}'
202 - branch-compare-type: 'ANT'
203 branch-pattern: '**/{branch}'
205 - compare-type: 'ANT'
209 name: nordix-gerrit-push-upstream
212 server-name: 'Nordix Gerrit'
214 - comment-added-contains-event:
215 comment-contains-value: 'push-upstream'
217 - project-compare-type: 'ANT'
218 project-pattern: '{project}'
220 - branch-compare-type: 'ANT'
221 branch-pattern: '**/{branch}'
223 - compare-type: 'ANT'
226 # triggers for ONAP Gerrit
228 name: onap-gerrit-trigger-change-merged
231 server-name: 'ONAP Gerrit'
233 - change-merged-event
234 - comment-added-contains-event:
235 comment-contains-value: 'remerge'
237 - project-compare-type: 'ANT'
238 project-pattern: '{project}'
240 - branch-compare-type: 'ANT'
241 branch-pattern: '**/{branch}'
243 - compare-type: 'ANT'
248 # triggers for Acumos Gerrit
250 name: acumos-gerrit-trigger-change-merged
253 server-name: 'Acumos Gerrit'
255 - change-merged-event
256 - comment-added-contains-event:
257 comment-contains-value: 'remerge'
259 - project-compare-type: 'ANT'
260 project-pattern: '{project}'
262 - branch-compare-type: 'ANT'
263 branch-pattern: '**/{branch}'
265 - compare-type: 'ANT'
270 # triggers for ODL Gerrit
272 name: odl-gerrit-trigger-change-merged
275 server-name: 'ODL Gerrit'
277 - change-merged-event
278 - comment-added-contains-event:
279 comment-contains-value: 'remerge'
281 - project-compare-type: 'ANT'
282 project-pattern: '{project}'
284 - branch-compare-type: 'ANT'
285 branch-pattern: '**/{branch}'
287 - compare-type: 'ANT'
292 # triggers for OpenDev Gerrit
294 name: opendev-gerrit-trigger-change-merged
297 server-name: 'OpenDev Gerrit'
299 - change-merged-event
300 - comment-added-contains-event:
301 comment-contains-value: 'remerge'
303 - project-compare-type: 'ANT'
304 project-pattern: '{project}'
306 - branch-compare-type: 'ANT'
307 branch-pattern: '**/{branch}'
309 - compare-type: 'ANT'
314 # wrappers to use for jobs
316 name: nordixinfra-jjb-creds-wrapper
318 - credentials-binding:
319 - username-password-separated:
320 credential-id: nordixinfra-jjb-creds
321 username: JJB_USERNAME
322 password: JJB_USERTOKEN
324 # timeout wrapper to use for jobs
330 timeout-var: 'BUILD_TIMEOUT'
333 # wrapper to fix jenkins build workspace permissions
335 name: fix-workspace-permissions
342 sudo chown -R $USER:$USER $WORKSPACE || exit 1
348 room: '{slack-channel}'
351 # property to discard old builds
358 artifact-days-to-keep: 30
359 artifact-num-to-keep: 100