3 name: "{project-name}-distribution-check-{stream}"
12 # Unless block_on_csit is true, the failure-threshold will be ignored. For project jobs that
13 # want to fail distribution check on csit jobs, they will only need a list of jobs to run
14 # plus the change of block_on_csit to true, and this failure-threshold: 'UNSTABLE' will take
16 failure-threshold: "UNSTABLE"
23 # Operation: This job template builds a patch, creates a distribution containing
24 # the patch (making sure dependencies are specified),
25 # and performs the distribution deploy test.
26 disabled: "{disable-job}"
28 project-type: freestyle
29 node: "centos8-builder-8c-8g"
33 - opendaylight-infra-properties:
34 build-days-to-keep: "{build-days-to-keep}"
37 - opendaylight-infra-parameters:
38 os-cloud: "{os-cloud}"
41 refspec: "refs/heads/{branch}"
42 artifacts: "{archive-artifacts}"
43 - integration-distribution-stream:
45 - integration-distribution-git-url:
47 - distribution-karaf-version:
48 karaf-version: "{karaf-version}"
50 maven-version: "{mvn-version}"
53 - integration-gerrit-scm:
54 basedir: "$GERRIT_PROJECT"
55 refspec: "$GERRIT_REFSPEC"
57 - integration-distribution-scm:
58 branch: "{distribution_branch}"
61 - opendaylight-infra-wrappers:
62 # Distro-check jobs typically run within 10 - 30 minutes
63 # with 45 minutes being the occassional edge case.
64 # enforce a 60 minute limit to ensure stuck jobs get
66 # Double that as Karaf 3+4 may take longer.
70 - gerrit-trigger-patch-submitted:
71 gerrit-server-name: "{gerrit-server-name}"
78 - distribution-check-wipe
79 - lf-update-java-alternatives:
80 java-version: "{java-version}"
82 properties-file: "allowed_projects.txt"
83 - distribution-check-build-project:
84 pom: "$GERRIT_PROJECT/pom.xml"
85 mvn-opts: "{opendaylight-infra-mvn-opts}"
86 mvn-version: "{mvn-version}"
87 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
88 - distribution-check-verify-groupid:
89 gerrit-project: "$GERRIT_PROJECT"
90 - distribution-check-download-deps:
91 dist-pom: "distribution/pom.xml"
92 mvn-opts: "{opendaylight-infra-mvn-opts}"
93 mvn-version: "{mvn-version}"
94 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
95 - distribution-check-delete-snapshots
96 - distribution-check-configure-remotes
97 - distribution-check-repeat-project-build:
98 pom: "$GERRIT_PROJECT/pom.xml"
99 mvn-opts: "{opendaylight-infra-mvn-opts}"
100 mvn-version: "{mvn-version}"
101 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
102 - distribution-check-repeat-distro-build:
103 dist-pom: "distribution/pom.xml"
104 mvn-opts: "{opendaylight-infra-mvn-opts}"
105 mvn-version: "{mvn-version}"
106 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
107 - integration-set-variables
108 - distribution-check-warn-9191
109 - distribution-check-warn-9192
110 - integration-upload-distribution:
111 dist-pom: distribution/pom.xml
112 settings-project: integration
113 - distribution-check-bootup
116 - project: "{csit-gate-list}"
117 block: "{obj:block_on_csit}"
119 failure-threshold: "{failure-threshold}"
120 predefined-parameters: |
121 BUNDLE_URL=$BUNDLE_URL
122 KARAF_VERSION=$KARAF_VERSION
125 - email-notification:
126 email-recipients: "{email-recipients}"
127 email-prefix: "[{project-name}]"
128 - integration-csit-archive-build
132 name: "distribution-verify-{type}-{stream}"
136 project-type: freestyle
137 node: centos8-builder-8c-8g
139 disabled: "{disable-job}"
142 - opendaylight-infra-properties:
143 build-days-to-keep: "{build-days-to-keep}"
146 - opendaylight-infra-parameters:
147 os-cloud: "{os-cloud}"
150 refspec: "refs/heads/{branch}"
151 artifacts: "{archive-artifacts}"
154 - gerrit-trigger-scm:
155 refspec: "$GERRIT_REFSPEC"
156 choosing-strategy: "gerrit"
159 - opendaylight-infra-wrappers:
160 build-timeout: "{build-timeout}"
163 - gerrit-trigger-patch-submitted:
164 gerrit-server-name: "{gerrit-server-name}"
168 forbidden-files: "{forbidden-files}"
171 - wipe-org-opendaylight-repo
172 - lf-provide-maven-settings:
173 global-settings-file: "global-settings"
174 settings-file: "integration-settings"
175 - lf-update-java-alternatives:
176 java-version: "{java-version}"
178 maven-version: "{mvn-version}"
181 clean install dependency:tree -DoutputFile=dependency_tree.txt
184 {opendaylight-infra-mvn-opts}
186 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
189 settings: integration-settings
191 global-settings: global-settings
192 global-settings-type: cfp
198 - email-notification:
199 email-recipients: "{email-recipients}"
200 email-prefix: "[{project-name}]"
203 name: "distribution-merge-{type}-{stream}"
205 # Need to keep jobs that deploy to Nexus at end of build as Maven
206 # projects. Maybe reconsider this once upstream moves deploy to a
207 # separate lifecycle:
208 # https://issues.apache.org/jira/browse/MNG-5666
213 node: "centos8-builder-8c-8g"
214 disabled: "{disable-job}"
217 - opendaylight-infra-properties:
218 build-days-to-keep: "{build-days-to-keep}"
221 - opendaylight-infra-parameters:
222 os-cloud: "{os-cloud}"
225 refspec: "refs/heads/{branch}"
226 artifacts: "{archive-artifacts}"
227 - distribution-karaf-version:
228 karaf-version: "{karaf-version}"
231 - gerrit-trigger-scm:
233 choosing-strategy: "default"
236 - opendaylight-infra-wrappers:
237 build-timeout: "{build-timeout}"
240 - gerrit-trigger-patch-merged:
241 gerrit-server-name: "{gerrit-server-name}"
245 forbidden-files: "{forbidden-files}"
247 jobs: "{dependencies}"
250 - wipe-org-opendaylight-repo
251 - lf-jacoco-nojava-workaround
252 - lf-provide-maven-settings:
253 global-settings-file: "global-settings"
254 settings-file: "integration-settings"
255 - lf-update-java-alternatives:
256 java-version: "{java-version}"
257 - integration-set-variables
258 - distribute-build-url:
259 path: "$KARAF_ARTIFACT/src/main/assembly"
265 clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B
266 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
268 -Djenkins -Dmerge -Dstream={stream}
270 maven-opts: "-Xmx1024m"
271 settings: integration-settings
273 global-settings: global-settings
274 global-settings-type: cfp
277 - integration-compare-distributions
278 # TODO: the output of the above command is not *friendly* for the reader because the most important info
279 # is listed last. This is fine/best for command line output, but for keeping in a file it would be better
280 # to put the summary at the beginning of the file. Some bash magic can be done here to make that happen.
289 deploy-unstable: false
292 - email-notification:
293 email-recipients: "{email-recipients}"
294 email-prefix: "[{project-name}]"
297 name: "distribution-check-{type}-{stream}"
299 ######################
300 # Default parameters #
301 ######################
305 #####################
306 # Job Configuration #
307 #####################
309 # Like a {project}-distribution-check, but few steps less as there is no upstream project involved.
310 disabled: "{disable-job}"
312 project-type: freestyle
313 node: "centos8-builder-8c-8g"
317 - opendaylight-infra-properties:
318 build-days-to-keep: "{build-days-to-keep}"
321 - opendaylight-infra-parameters:
322 os-cloud: "{os-cloud}"
325 refspec: "refs/heads/{branch}"
326 artifacts: "{archive-artifacts}"
327 - integration-distribution-stream:
329 - distribution-karaf-version:
330 karaf-version: "{karaf-version}"
332 maven-version: "{mvn-version}"
335 - integration-gerrit-scm:
336 basedir: "distribution"
337 refspec: "$GERRIT_REFSPEC"
341 - opendaylight-infra-wrappers:
342 # Distro-check jobs typically run within 10 - 30 minutes
343 # with 45 minutes being the occassional edge case.
344 # enforce a 60 minute limit to ensure stuck jobs get
346 # Double that as Karaf 3+4 may take longer.
350 - gerrit-trigger-patch-submitted:
351 gerrit-server-name: "{gerrit-server-name}"
355 forbidden-files: "{forbidden-files}"
358 - distribution-check-wipe
359 - lf-update-java-alternatives:
360 java-version: "{java-version}"
362 properties-file: "allowed_projects.txt"
363 - distribution-check-build-project:
364 pom: "distribution/pom.xml"
366 {opendaylight-infra-mvn-opts}
368 mvn-version: "{mvn-version}"
369 # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT.
370 - distribution-check-verify-groupid:
371 gerrit-project: "integration"
372 - distribution-check-delete-snapshots
373 - distribution-check-configure-remotes
374 - distribution-check-repeat-project-build:
375 pom: "distribution/pom.xml"
377 {opendaylight-infra-mvn-opts}
379 mvn-version: "{mvn-version}"
380 # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT.
381 - integration-set-variables
382 - distribution-check-warn-9191
383 - distribution-check-warn-9192
384 - integration-upload-distribution:
385 dist-pom: "{dist-pom}"
386 settings-project: integration
387 - distribution-check-bootup
390 - email-notification:
391 email-recipients: "{email-recipients}"
392 email-prefix: "[{project-name}]"
393 - integration-csit-archive-build
397 name: "distribution-sanity-{stream}"
398 # Goal: Verify distribution starts with no issues when all features are loaded.
399 # Operation: This job deploys odl-integration-all + list of UM features.
400 # This job works for both managed & self-managed distro.
402 project-type: freestyle
403 node: centos8-builder-2c-8g
407 - opendaylight-infra-properties:
408 build-days-to-keep: "{build-days-to-keep}"
411 - opendaylight-infra-parameters:
412 os-cloud: "{os-cloud}"
415 refspec: "refs/heads/{branch}"
416 artifacts: "{archive-artifacts}"
417 - integration-distribution-stream:
419 - integration-distribution-branch:
421 - integration-bundle-url:
422 bundle-url: "{bundle-url}"
423 - integration-repo-url:
424 repo-url: "{sm-repos}"
425 - integration-controller-parameters:
426 controller-features: "{sm-features}"
427 # Parameters below are unused in this job so set them all to blank
428 controller-max-mem: ""
429 controller-debug-map: ""
431 controller-use-features-boot: ""
432 feature-elasticsearch-attribute: "{elasticsearch-attribute}"
433 - integration-jdk-version:
435 - distribution-karaf-version:
436 karaf-version: "{karaf-version}"
439 - opendaylight-infra-wrappers:
440 build-timeout: "{build-timeout}"
443 - integration-detect-variables
444 - distribution-check-bootup
447 - email-notification:
448 email-recipients: "{email-recipients}"
449 email-prefix: "[{project-name}]"
450 - integration-csit-archive-build
454 name: "distribution-csit-managed-{stream}"
455 # Goal: Verify distribution starts with no issues when all features are loaded.
456 # Operation: This job deploys odl-integration-all.
457 # This job works for just managed distro.
461 project-type: freestyle
462 node: centos8-builder-4c-4g
464 disabled: "{disable-job}"
467 - opendaylight-infra-properties:
468 build-days-to-keep: "{build-days-to-keep}"
471 - opendaylight-infra-parameters:
472 os-cloud: "{os-cloud}"
475 refspec: "refs/heads/{branch}"
476 artifacts: "{archive-artifacts}"
477 - integration-distribution-stream:
479 - integration-distribution-branch:
481 - integration-bundle-url:
482 bundle-url: "{bundle-url}"
483 - integration-jdk-version:
485 - distribution-karaf-version:
486 karaf-version: "karaf4"
489 - opendaylight-infra-wrappers:
490 build-timeout: "{build-timeout}"
493 - integration-detect-variables
494 - distribution-check-bootup
497 - email-notification:
498 email-recipients: "{email-recipients}"
499 email-prefix: "[{project-name}]"
500 - integration-csit-archive-build