2 # Autorelease build jobs
4 name: autorelease-branch-cut
10 project-type: freestyle
11 node: centos7-builder-2c-2g
14 - opendaylight-infra-properties:
18 - lf-infra-parameters:
19 project: releng/autorelease
22 lftools-version: '{lftools-version}'
26 Release name to branch cut.
27 Eg. Lithium, Beryllium, Boron, Carbon...
32 If DRY_RUN is enabled modifications are not published to Gerrit.
35 - lf-infra-gerrit-scm:
36 git-url: '$GIT_URL/$GERRIT_PROJECT'
38 refspec: 'refs/heads/master'
39 jenkins-ssh-credential: opendaylight-jenkins-ssh
40 submodule-recursive: true
41 choosing-strategy: default
46 jenkins-ssh-credential: opendaylight-jenkins-ssh
49 - shell: !include-raw-escape: branch-cut.sh
55 name: 'autorelease-release-{stream}'
57 ######################
58 # Default parameters #
59 ######################
61 build-node: '{build-node}'
63 java-version: openjdk8
71 project-type: freestyle
76 - lf-infra-properties:
77 build-days-to-keep: 30
81 maven-version: 'mvn35'
82 - lf-infra-parameters:
86 lftools-version: '{lftools-version}'
87 - distribution-karaf-version:
88 karaf-version: '{karaf-version}'
89 - autorelease-release-tag:
90 release-tag: '{next-release-tag}'
93 default: '{extra-mvn-opts}'
95 Additional optional Maven Options to pass to the Maven Goals
99 -Dskip.karaf.featureTest=true # To disable karaf SingleFeatureTests
100 --fail-never # NEVER fail the build, regardless of project result
101 --fail-at-end # Only fail the build afterwards; allow all non-impacted builds to continue
103 name: ARCHIVE_ARTIFACTS
104 default: '{archive-artifacts}'
105 description: Artifacts to archive to the logs server.
109 credentials-id: 'opendaylight-jenkins-ssh'
111 refspec: '$GERRIT_REFSPEC'
114 choosing-strategy: default
121 - opendaylight-infra-wrappers:
128 # force jenkins install of maven version before any shell scripts use it
130 mvn-version: '{mvn-version}'
131 - wipe-local-maven-repo
132 - jacoco-nojava-workaround
133 - shell: "./scripts/list-project-dependencies.sh"
134 - autorelease-determine-merge-order
136 autorelease-settings: 'autorelease-settings'
137 global-settings: 'odl-global-settings'
138 - autorelease-generate-release-patches
139 - autorelease-generate-artifact-versions
140 - autorelease-distribute-taglist
141 - distribute-build-url:
142 path: 'integration/distribution/$KARAF_ARTIFACT/src/main/assembly'
143 # In a perfect world projects should be releasing separately and we consume them
144 # via a project that pulls the release bits from each project from Nexus.
145 # Keep the patches compatible with that ideal, but apply an edit
146 # to enable building in a single maven reactor afterwards.
147 - autorelease-fix-relative-paths
149 maven-version: 'mvn35'
154 -Pintegrationtests,docs,repoBuild
155 -Dcheckstyle.skip=true
156 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
157 {opendaylight-infra-mvn-opts}
159 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
160 settings: 'autorelease-settings'
162 global-settings: 'global-settings'
163 global-settings-type: cfp
164 - autorelease-maven-deploy
165 - autorelease-get-integration-test-variables
166 - autorelease-maven-sources:
167 opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
168 maven-version: 'mvn35'
169 settings: 'autorelease-settings'
170 global-settings: 'global-settings'
171 - autorelease-maven-sources-post-process
177 - opendaylight-infra-notify-status
178 - trigger-parameterized-builds:
179 - project: 'integration-distribution-test-{integration-test}'
180 condition: UNSTABLE_OR_BETTER
181 property-file: variables.jenkins-trigger
182 fail-on-missing: true
183 - project: 'integration-distribution-test-{integration-test}'
185 trigger-with-no-params: true
186 - project: 'integration-sanity-test-{integration-test}'
187 condition: UNSTABLE_OR_BETTER
188 property-file: variables.jenkins-trigger
189 fail-on-missing: true
190 - project: 'integration-sanity-test-{integration-test}'
192 trigger-with-no-params: true
193 - project: 'packaging-build-rpm-{stream}'
194 condition: UNSTABLE_OR_BETTER
195 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
196 property-file: variables.jenkins-trigger
197 fail-on-missing: true
198 - project: 'packaging-build-deb-{stream}'
199 condition: UNSTABLE_OR_BETTER
200 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
201 property-file: variables.jenkins-trigger
202 fail-on-missing: true
203 # Critical component of the OpenDaylight community
210 - shell: echo '#topic cookies'
211 mark-unstable-if-failed: false
215 name: autorelease-update-validate-jobs-{stream}
217 ######################
218 # Default parameters #
219 ######################
223 #####################
224 # Job configuration #
225 #####################
227 project-type: freestyle
228 node: centos7-builder-2c-1g
231 - lf-infra-properties:
232 build-days-to-keep: 7
235 - lf-infra-parameters:
236 project: releng/builder
239 lftools-version: '{lftools-version}'
242 - lf-infra-gerrit-scm:
243 git-url: '$GIT_URL/releng/builder'
245 refspec: 'refs/heads/master'
246 jenkins-ssh-credential: opendaylight-jenkins-ssh
247 submodule-recursive: true
248 choosing-strategy: default
253 server-name: '{gerrit-server-name}'
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}'
271 jenkins-ssh-credential: opendaylight-jenkins-ssh
274 - autorelease-update-project-views
275 - autorelease-update-validate-projects
276 - opendaylight-infra-push-gerrit-patch:
277 project: 'releng/builder'
278 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
279 gerrit-commit-message: |
280 Update validate autorelease projects for {stream}
286 name: autorelease-version-bump-{stream}
287 project-type: freestyle
291 - opendaylight-infra-properties:
292 build-days-to-keep: 7
295 - lf-infra-parameters:
296 project: releng/autorelease
299 refspec: 'refs/heads/{branch}'
300 lftools-version: '{lftools-version}'
303 default: '{next-release-tag}'
305 Release that is being version bumped.
306 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
311 If BRANCH_CUT is enabled, perform version bump for branch cutting
312 workflow, else perform version bump for simultaneous release
318 If DRY_RUN is enabled modifications are not published to Gerrit
319 and artifacts are not pushed to Nexus. Instead the build will be
320 performed using the goals "clean install".
325 - lf-infra-gerrit-scm:
326 git-url: '$GIT_URL/$GERRIT_PROJECT'
328 refspec: 'refs/heads/{branch}'
329 jenkins-ssh-credential: opendaylight-jenkins-ssh
330 submodule-recursive: true
331 choosing-strategy: default
336 jenkins-ssh-credential: opendaylight-jenkins-ssh
339 # force jenkins install of maven version before any shell scripts use it
343 settings: autorelease-settings
345 global-settings: global-settings
346 global-settings-type: cfp
348 - shell: !include-raw-escape:
349 - ../global-jjb/shell/lftools-install.sh
356 name: 'autorelease-generate-release-notes-{stream}'
358 ######################
359 # Default parameters #
360 ######################
362 gerrit_merge_triggers:
363 - comment-added-contains-event:
364 comment-contains-value: generate-release-notes .+$
366 #####################
367 # Job Configuration #
368 #####################
370 project-type: freestyle
371 node: centos7-builder-2c-8g
374 - lf-infra-properties:
375 build-days-to-keep: 7
378 - lf-infra-parameters:
382 lftools-version: '{lftools-version}'
385 description: Release to generate release notes for.
388 - lf-infra-gerrit-scm:
389 git-url: '$GIT_URL/$GERRIT_PROJECT'
390 branch: '$GERRIT_BRANCH'
391 refspec: '$GERRIT_REFSPEC'
392 jenkins-ssh-credential: opendaylight-jenkins-ssh
393 submodule-recursive: true
394 choosing-strategy: default
399 jenkins-ssh-credential: opendaylight-jenkins-ssh
403 server-name: '{gerrit-server-name}'
404 trigger-on: '{obj:gerrit_merge_triggers}'
406 - project-compare-type: ANT
407 project-pattern: '{project}'
409 - branch-compare-type: ANT
410 branch-pattern: '**/{branch}'
413 - autorelease-generate-release-notes
419 name: '{project-name}-validate-autorelease-{stream}'
425 java-version: openjdk8
427 #####################
428 # Job Configuration #
429 #####################
432 project-type: freestyle
433 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
434 # override the build node.
435 node: centos7-builder-2c-8g
437 jdk: '{java-version}'
440 - lf-infra-properties:
441 build-days-to-keep: 7
444 - lf-infra-parameters:
448 lftools-version: '{lftools-version}'
449 - autorelease-release-tag:
450 release-tag: validate
453 default: '{git-url}/releng/autorelease'
454 description: "Autorelease clone URL"
459 credentials-id: 'opendaylight-jenkins-ssh'
469 - opendaylight-infra-wrappers:
470 build-timeout: '{build-timeout}'
473 - gerrit-trigger-patch-submitted:
474 gerrit-server-name: '{gerrit-server-name}'
480 - autorelease-checkout-gerrit-patch
481 - autorelease-compare-projects
482 - jacoco-nojava-workaround
483 - shell: "./scripts/list-project-dependencies.sh"
484 - autorelease-determine-merge-order
485 - autorelease-generate-release-patches
486 # In a perfect world projects should be releasing separately and we consume them
487 # via a project that pulls the release bits from each project from Nexus.
488 # Keep the patches compatible with that ideal, but apply an edit
489 # to enable building in a single maven reactor afterwards.
490 - autorelease-fix-relative-paths
493 pom: validate-pom.xml
495 clean install dependency:tree
498 {opendaylight-infra-mvn-opts}
501 settings: autorelease-settings
503 global-settings: global-settings
504 global-settings-type: cfp
505 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
506 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
513 {opendaylight-infra-mvn-opts}
515 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
516 settings: autorelease-settings
518 global-settings: global-settings
519 global-settings-type: cfp
525 - email-notification:
526 email-recipients: '{email-recipients}'
527 email-prefix: '[autorelease] [{project-name}]'