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: "centos7-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 - distribution-check-bootup
115 - project: "{csit-gate-list}"
116 block: "{obj:block_on_csit}"
118 failure-threshold: "{failure-threshold}"
119 predefined-parameters: |
120 BUNDLE_URL=$BUNDLE_URL
121 KARAF_VERSION=$KARAF_VERSION
124 - email-notification:
125 email-recipients: "{email-recipients}"
126 email-prefix: "[{project-name}]"
127 - integration-csit-archive-build
131 name: "distribution-verify-{type}-{stream}"
135 project-type: freestyle
136 node: centos7-builder-8c-8g
138 disabled: "{disable-job}"
141 - opendaylight-infra-properties:
142 build-days-to-keep: "{build-days-to-keep}"
145 - opendaylight-infra-parameters:
146 os-cloud: "{os-cloud}"
149 refspec: "refs/heads/{branch}"
150 artifacts: "{archive-artifacts}"
153 - gerrit-trigger-scm:
154 refspec: "$GERRIT_REFSPEC"
155 choosing-strategy: "gerrit"
158 - opendaylight-infra-wrappers:
159 build-timeout: "{build-timeout}"
162 - gerrit-trigger-patch-submitted:
163 gerrit-server-name: "{gerrit-server-name}"
167 forbidden-files: "{forbidden-files}"
170 - wipe-org-opendaylight-repo
171 - lf-provide-maven-settings:
172 global-settings-file: "global-settings"
173 settings-file: "integration-settings"
174 - lf-update-java-alternatives:
175 java-version: "{java-version}"
180 clean install dependency:tree -DoutputFile=dependency_tree.txt
183 {opendaylight-infra-mvn-opts}
185 # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT.
188 settings: integration-settings
190 global-settings: global-settings
191 global-settings-type: cfp
197 - email-notification:
198 email-recipients: "{email-recipients}"
199 email-prefix: "[{project-name}]"
202 name: "distribution-merge-{type}-{stream}"
204 # Need to keep jobs that deploy to Nexus at end of build as Maven
205 # projects. Maybe reconsider this once upstream moves deploy to a
206 # separate lifecycle:
207 # https://issues.apache.org/jira/browse/MNG-5666
212 node: "centos7-builder-8c-8g"
213 disabled: "{disable-job}"
216 - opendaylight-infra-properties:
217 build-days-to-keep: "{build-days-to-keep}"
220 - opendaylight-infra-parameters:
221 os-cloud: "{os-cloud}"
224 refspec: "refs/heads/{branch}"
225 artifacts: "{archive-artifacts}"
226 - distribution-karaf-version:
227 karaf-version: "{karaf-version}"
230 - gerrit-trigger-scm:
232 choosing-strategy: "default"
235 - opendaylight-infra-wrappers:
236 build-timeout: "{build-timeout}"
239 - gerrit-trigger-patch-merged:
240 gerrit-server-name: "{gerrit-server-name}"
244 forbidden-files: "{forbidden-files}"
246 jobs: "{dependencies}"
249 - wipe-org-opendaylight-repo
250 - lf-jacoco-nojava-workaround
251 - lf-provide-maven-settings:
252 global-settings-file: "global-settings"
253 settings-file: "integration-settings"
254 - lf-update-java-alternatives:
255 java-version: "{java-version}"
256 - integration-set-variables
257 - distribute-build-url:
258 path: "$KARAF_ARTIFACT/src/main/assembly"
264 clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B
265 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
267 -Djenkins -Dmerge -Dstream={stream}
269 maven-opts: "-Xmx1024m"
270 settings: integration-settings
272 global-settings: global-settings
273 global-settings-type: cfp
276 - integration-compare-distributions
277 # TODO: the output of the above command is not *friendly* for the reader because the most important info
278 # is listed last. This is fine/best for command line output, but for keeping in a file it would be better
279 # to put the summary at the beginning of the file. Some bash magic can be done here to make that happen.
288 deploy-unstable: false
291 - email-notification:
292 email-recipients: "{email-recipients}"
293 email-prefix: "[{project-name}]"
296 name: "distribution-check-{type}-{stream}"
298 ######################
299 # Default parameters #
300 ######################
304 #####################
305 # Job Configuration #
306 #####################
308 # Like a {project}-distribution-check, but few steps less as there is no upstream project involved.
309 disabled: "{disable-job}"
311 project-type: freestyle
312 node: "centos7-builder-8c-8g"
316 - opendaylight-infra-properties:
317 build-days-to-keep: "{build-days-to-keep}"
320 - opendaylight-infra-parameters:
321 os-cloud: "{os-cloud}"
324 refspec: "refs/heads/{branch}"
325 artifacts: "{archive-artifacts}"
326 - integration-distribution-stream:
328 - distribution-karaf-version:
329 karaf-version: "{karaf-version}"
334 - integration-gerrit-scm:
335 basedir: "distribution"
336 refspec: "$GERRIT_REFSPEC"
340 - opendaylight-infra-wrappers:
341 # Distro-check jobs typically run within 10 - 30 minutes
342 # with 45 minutes being the occassional edge case.
343 # enforce a 60 minute limit to ensure stuck jobs get
345 # Double that as Karaf 3+4 may take longer.
349 - gerrit-trigger-patch-submitted:
350 gerrit-server-name: "{gerrit-server-name}"
354 forbidden-files: "{forbidden-files}"
357 - distribution-check-wipe
358 - lf-update-java-alternatives:
359 java-version: "{java-version}"
361 properties-file: "allowed_projects.txt"
362 - distribution-check-build-project:
363 pom: "distribution/pom.xml"
365 {opendaylight-infra-mvn-opts}
367 mvn-version: "{mvn-version}"
368 # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT.
369 - distribution-check-verify-groupid:
370 gerrit-project: "integration"
371 - distribution-check-delete-snapshots
372 - distribution-check-configure-remotes
373 - distribution-check-repeat-project-build:
374 pom: "distribution/pom.xml"
376 {opendaylight-infra-mvn-opts}
378 mvn-version: "{mvn-version}"
379 # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT.
380 - integration-set-variables
381 - distribution-check-warn-9191
382 - distribution-check-warn-9192
383 - integration-upload-distribution:
384 dist-pom: "{dist-pom}"
385 - distribution-check-bootup
388 - email-notification:
389 email-recipients: "{email-recipients}"
390 email-prefix: "[{project-name}]"
391 - integration-csit-archive-build
395 name: "distribution-sanity-{stream}"
396 # Goal: Verify distribution starts with no issues when all features are loaded.
397 # Operation: This job deploys odl-integration-all + list of UM features.
398 # This job works for both managed & self-managed distro.
400 project-type: freestyle
401 node: centos7-builder-2c-8g
405 - opendaylight-infra-properties:
406 build-days-to-keep: "{build-days-to-keep}"
409 - opendaylight-infra-parameters:
410 os-cloud: "{os-cloud}"
413 refspec: "refs/heads/{branch}"
414 artifacts: "{archive-artifacts}"
415 - integration-distribution-stream:
417 - integration-distribution-branch:
419 - integration-bundle-url:
420 bundle-url: "{bundle-url}"
421 - integration-repo-url:
422 repo-url: "{sm-repos}"
423 - integration-controller-parameters:
424 controller-features: "{sm-features}"
425 # Parameters below are unused in this job so set them all to blank
426 controller-max-mem: ""
427 controller-debug-map: ""
429 controller-use-features-boot: ""
430 feature-elasticsearch-attribute: "{elasticsearch-attribute}"
431 - integration-jdk-version:
433 - distribution-karaf-version:
434 karaf-version: "{karaf-version}"
437 - opendaylight-infra-wrappers:
438 build-timeout: "{build-timeout}"
441 - integration-detect-variables
442 - distribution-check-bootup
445 - email-notification:
446 email-recipients: "{email-recipients}"
447 email-prefix: "[{project-name}]"
448 - integration-csit-archive-build
452 name: "distribution-csit-managed-{stream}"
453 # Goal: Verify distribution starts with no issues when all features are loaded.
454 # Operation: This job deploys odl-integration-all.
455 # This job works for just managed distro.
459 project-type: freestyle
460 node: centos7-builder-4c-4g
462 disabled: "{disable-job}"
465 - opendaylight-infra-properties:
466 build-days-to-keep: "{build-days-to-keep}"
469 - opendaylight-infra-parameters:
470 os-cloud: "{os-cloud}"
473 refspec: "refs/heads/{branch}"
474 artifacts: "{archive-artifacts}"
475 - integration-distribution-stream:
477 - integration-distribution-branch:
479 - integration-bundle-url:
480 bundle-url: "{bundle-url}"
481 - integration-jdk-version:
483 - distribution-karaf-version:
484 karaf-version: "karaf4"
487 - opendaylight-infra-wrappers:
488 build-timeout: "{build-timeout}"
491 - integration-detect-variables
492 - distribution-check-bootup
495 - email-notification:
496 email-recipients: "{email-recipients}"
497 email-prefix: "[{project-name}]"
498 - integration-csit-archive-build