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: '{stream}'
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 - lf-infra-push-gerrit-patch:
278 gerrit-user: 'jenkins-$SILO'
279 gerrit-host: 'git.opendaylight.org'
280 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
281 gerrit-commit-message: |
282 'Update validate autorelease projects for {stream}'
283 reviewers-email: 'release@lists.opendaylight.org'
289 name: autorelease-version-bump-{stream}
290 project-type: freestyle
294 - opendaylight-infra-properties:
295 build-days-to-keep: 7
298 - lf-infra-parameters:
299 project: releng/autorelease
302 refspec: 'refs/heads/{branch}'
303 lftools-version: '{lftools-version}'
308 Release that is being version bumped.
309 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
314 If BRANCH_CUT is enabled, perform version bump for branch cutting
315 workflow, else perform version bump for simultaneous release
321 If DRY_RUN is enabled modifications are not published to Gerrit
322 and artifacts are not pushed to Nexus. Instead the build will be
323 performed using the goals "clean install".
328 - lf-infra-gerrit-scm:
329 git-url: '$GIT_URL/$GERRIT_PROJECT'
331 refspec: 'refs/heads/{branch}'
332 jenkins-ssh-credential: opendaylight-jenkins-ssh
333 submodule-recursive: true
334 choosing-strategy: default
339 jenkins-ssh-credential: opendaylight-jenkins-ssh
342 # force jenkins install of maven version before any shell scripts use it
346 settings: autorelease-settings
348 global-settings: global-settings
349 global-settings-type: cfp
351 - shell: !include-raw-escape:
352 - ../global-jjb/shell/lftools-install.sh
359 name: 'autorelease-generate-release-notes-{stream}'
361 ######################
362 # Default parameters #
363 ######################
365 gerrit_merge_triggers:
366 - comment-added-contains-event:
367 comment-contains-value: generate-release-notes .+$
369 #####################
370 # Job Configuration #
371 #####################
373 project-type: freestyle
374 node: centos7-builder-2c-8g
377 - lf-infra-properties:
378 build-days-to-keep: 7
381 - lf-infra-parameters:
385 lftools-version: '{lftools-version}'
388 description: Release to generate release notes for.
391 - lf-infra-gerrit-scm:
392 git-url: '$GIT_URL/$GERRIT_PROJECT'
393 branch: '$GERRIT_BRANCH'
394 refspec: '$GERRIT_REFSPEC'
395 jenkins-ssh-credential: opendaylight-jenkins-ssh
396 submodule-recursive: true
397 choosing-strategy: default
402 jenkins-ssh-credential: opendaylight-jenkins-ssh
406 server-name: '{gerrit-server-name}'
407 trigger-on: '{obj:gerrit_merge_triggers}'
409 - project-compare-type: ANT
410 project-pattern: '{project}'
412 - branch-compare-type: ANT
413 branch-pattern: '**/{branch}'
416 - autorelease-generate-release-notes
422 name: '{project-name}-validate-autorelease-{stream}'
428 java-version: openjdk8
430 #####################
431 # Job Configuration #
432 #####################
435 project-type: freestyle
436 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
437 # override the build node.
438 node: centos7-builder-2c-8g
440 jdk: '{java-version}'
443 - lf-infra-properties:
444 build-days-to-keep: 7
447 - lf-infra-parameters:
451 lftools-version: '{lftools-version}'
452 - autorelease-release-tag:
453 release-tag: validate
456 default: '{git-url}/releng/autorelease'
457 description: "Autorelease clone URL"
462 credentials-id: 'opendaylight-jenkins-ssh'
472 - opendaylight-infra-wrappers:
473 build-timeout: '{build-timeout}'
476 - gerrit-trigger-patch-submitted:
477 gerrit-server-name: '{gerrit-server-name}'
483 - autorelease-checkout-gerrit-patch
484 - autorelease-compare-projects
485 - jacoco-nojava-workaround
486 - shell: "./scripts/list-project-dependencies.sh"
487 - autorelease-determine-merge-order
488 - autorelease-generate-release-patches
489 # In a perfect world projects should be releasing separately and we consume them
490 # via a project that pulls the release bits from each project from Nexus.
491 # Keep the patches compatible with that ideal, but apply an edit
492 # to enable building in a single maven reactor afterwards.
493 - autorelease-fix-relative-paths
496 pom: validate-pom.xml
498 clean install dependency:tree
501 {opendaylight-infra-mvn-opts}
504 settings: autorelease-settings
506 global-settings: global-settings
507 global-settings-type: cfp
508 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
509 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
516 {opendaylight-infra-mvn-opts}
518 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
519 settings: autorelease-settings
521 global-settings: global-settings
522 global-settings-type: cfp
528 - email-notification:
529 email-recipients: '{email-recipients}'
530 email-prefix: '[autorelease] [{project-name}]'