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'
153 name: nordix-gerrit-trigger-change-merged
156 server-name: 'Nordix Gerrit'
158 - change-merged-event
159 - comment-added-contains-event:
160 comment-contains-value: 'remerge'
162 - project-compare-type: 'ANT'
163 project-pattern: '{project}'
165 - branch-compare-type: 'ANT'
166 branch-pattern: '**/{branch}'
168 - compare-type: 'ANT'
172 name: nordix-gerrit-push-upstream
175 server-name: 'Nordix Gerrit'
177 - comment-added-contains-event:
178 comment-contains-value: 'push-upstream'
180 - project-compare-type: 'ANT'
181 project-pattern: '{project}'
183 - branch-compare-type: 'ANT'
184 branch-pattern: '**/{branch}'
186 - compare-type: 'ANT'
189 # triggers for ONAP Gerrit
191 name: onap-gerrit-trigger-change-merged
194 server-name: 'ONAP Gerrit'
196 - change-merged-event
197 - comment-added-contains-event:
198 comment-contains-value: 'remerge'
200 - project-compare-type: 'ANT'
201 project-pattern: '{project}'
203 - branch-compare-type: 'ANT'
204 branch-pattern: '**/{branch}'
206 - compare-type: 'ANT'
211 # triggers for Acumos Gerrit
213 name: acumos-gerrit-trigger-change-merged
216 server-name: 'Acumos Gerrit'
218 - change-merged-event
219 - comment-added-contains-event:
220 comment-contains-value: 'remerge'
222 - project-compare-type: 'ANT'
223 project-pattern: '{project}'
225 - branch-compare-type: 'ANT'
226 branch-pattern: '**/{branch}'
228 - compare-type: 'ANT'
234 # wrappers to use for jobs
236 name: nordixinfra-jjb-creds-wrapper
238 - credentials-binding:
239 - username-password-separated:
240 credential-id: nordixinfra-jjb-creds
241 username: JJB_USERNAME
242 password: JJB_USERTOKEN
244 # timeout wrapper to use for jobs
250 timeout-var: 'BUILD_TIMEOUT'
253 # wrapper to fix jenkins build workspace permissions
255 name: fix-workspace-permissions
262 sudo chown -R $USER:$USER $WORKSPACE || exit 1
268 room: '{slack-channel}'
271 # property to discard old builds
278 artifact-days-to-keep: 30
279 artifact-num-to-keep: 100