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
77 # defaults for job build history
79 name: logrotate-default
84 artifact-days-to-keep: 60
85 artifact-num-to-keep: 200
87 # defaults for SCM and Gerrit
92 url: '$GIT_BASE_SSH/$PROJECT'
93 credentials-id: '{ssh-credentials-id}'
95 - 'refs/heads/{branch}'
105 choosing-strategy: 'default'
111 url: '$GIT_BASE_SSH/$PROJECT'
112 credentials-id: '{ssh-credentials-id}'
114 - 'refs/heads/{branch}'
124 choosing-strategy: 'gerrit'
126 # triggers for Nordix Gerrit
128 name: nordix-gerrit-trigger-patchset-created
131 server-name: 'Nordix Gerrit'
133 - patchset-created-event:
134 exclude-drafts: 'false'
135 exclude-trivial-rebase: 'false'
136 exclude-no-code-change: 'false'
137 - draft-published-event
138 - comment-added-contains-event:
139 comment-contains-value: 'recheck'
140 - comment-added-contains-event:
141 comment-contains-value: 'reverify'
143 - project-compare-type: 'REG_EXP'
144 project-pattern: '{project}'
146 - branch-compare-type: 'ANT'
147 branch-pattern: '**/{branch}'
149 - compare-type: 'ANT'
158 name: nordix-gerrit-trigger-change-merged
161 server-name: 'Nordix Gerrit'
163 - change-merged-event
164 - comment-added-contains-event:
165 comment-contains-value: 'remerge'
167 - project-compare-type: 'ANT'
168 project-pattern: '{project}'
170 - branch-compare-type: 'ANT'
171 branch-pattern: '**/{branch}'
173 - compare-type: 'ANT'
177 name: nordix-gerrit-push-upstream
180 server-name: 'Nordix Gerrit'
182 - comment-added-contains-event:
183 comment-contains-value: 'push-upstream'
185 - project-compare-type: 'ANT'
186 project-pattern: '{project}'
188 - branch-compare-type: 'ANT'
189 branch-pattern: '**/{branch}'
191 - compare-type: 'ANT'
194 # triggers for ONAP Gerrit
196 name: onap-gerrit-trigger-change-merged
199 server-name: 'ONAP 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'
216 # triggers for Acumos Gerrit
218 name: acumos-gerrit-trigger-change-merged
221 server-name: 'Acumos 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'
239 # wrappers to use for jobs
241 name: nordixinfra-jjb-creds-wrapper
243 - credentials-binding:
244 - username-password-separated:
245 credential-id: nordixinfra-jjb-creds
246 username: JJB_USERNAME
247 password: JJB_USERTOKEN
249 # timeout wrapper to use for jobs
255 timeout-var: 'BUILD_TIMEOUT'
258 # wrapper to fix jenkins build workspace permissions
260 name: fix-workspace-permissions
267 sudo chown -R $USER:$USER $WORKSPACE || exit 1
273 room: '{slack-channel}'
276 # property to discard old builds
283 artifact-days-to-keep: 30
284 artifact-num-to-keep: 100