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}'
61 build-node: '{build-node}'
62 java-version: openjdk8
70 project-type: freestyle
76 - lf-infra-properties:
77 build-days-to-keep: 30
81 maven-version: 'mvn33'
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: 'mvn33'
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: 'mvn33'
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
206 name: autorelease-update-validate-jobs-{stream}
207 project-type: freestyle
208 node: centos7-builder-2c-1g
211 - lf-infra-properties:
212 build-days-to-keep: 7
215 - lf-infra-parameters:
216 project: releng/builder
219 lftools-version: '{lftools-version}'
222 - lf-infra-gerrit-scm:
223 git-url: '$GIT_URL/releng/builder'
225 refspec: 'refs/heads/master'
226 jenkins-ssh-credential: opendaylight-jenkins-ssh
227 submodule-recursive: true
228 choosing-strategy: default
232 server-name: '{gerrit-server-name}'
234 - change-merged-event
235 - comment-added-contains-event:
236 comment-contains-value: remerge$
238 - project-compare-type: ANT
239 project-pattern: '{project}'
241 - branch-compare-type: ANT
242 branch-pattern: '**/{branch}'
250 jenkins-ssh-credential: opendaylight-jenkins-ssh
253 - autorelease-update-validate-projects
254 - opendaylight-infra-push-gerrit-patch:
255 project: 'releng/builder'
256 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
257 gerrit-commit-message: |
258 Update validate autorelease projects for {stream}
264 name: autorelease-version-bump-{stream}
265 project-type: freestyle
269 - opendaylight-infra-properties:
270 build-days-to-keep: 7
273 - lf-infra-parameters:
274 project: releng/autorelease
277 refspec: 'refs/heads/{branch}'
278 lftools-version: '{lftools-version}'
281 default: '{next-release-tag}'
283 Release that is being version bumped.
284 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
289 If BRANCH_CUT is enabled, perform version bump for branch cutting
290 workflow, else perform version bump for simultaneous release
296 If DRY_RUN is enabled modifications are not published to Gerrit
297 and artifacts are not pushed to Nexus. Instead the build will be
298 performed using the goals "clean install".
303 - lf-infra-gerrit-scm:
304 git-url: '$GIT_URL/$GERRIT_PROJECT'
306 refspec: 'refs/heads/{branch}'
307 jenkins-ssh-credential: opendaylight-jenkins-ssh
308 submodule-recursive: true
309 choosing-strategy: default
314 jenkins-ssh-credential: opendaylight-jenkins-ssh
317 # force jenkins install of maven version before any shell scripts use it
321 settings: autorelease-settings
323 global-settings: global-settings
324 global-settings-type: cfp
326 - shell: !include-raw-escape:
327 - ../global-jjb/shell/lftools-install.sh
334 name: 'autorelease-generate-release-notes-{stream}'
336 ######################
337 # Default parameters #
338 ######################
340 gerrit_merge_triggers:
341 - comment-added-contains-event:
342 comment-contains-value: generate-release-notes .+$
344 #####################
345 # Job Configuration #
346 #####################
348 project-type: freestyle
349 node: centos7-builder-2c-8g
352 - lf-infra-properties:
353 build-days-to-keep: 7
356 - lf-infra-parameters:
360 lftools-version: '{lftools-version}'
363 description: Release to generate release notes for.
366 - lf-infra-gerrit-scm:
367 git-url: '$GIT_URL/$GERRIT_PROJECT'
368 branch: '$GERRIT_BRANCH'
369 refspec: '$GERRIT_REFSPEC'
370 jenkins-ssh-credential: opendaylight-jenkins-ssh
371 submodule-recursive: true
372 choosing-strategy: default
377 jenkins-ssh-credential: opendaylight-jenkins-ssh
381 server-name: '{gerrit-server-name}'
382 trigger-on: '{obj:gerrit_merge_triggers}'
384 - project-compare-type: ANT
385 project-pattern: '{project}'
387 - branch-compare-type: ANT
388 branch-pattern: '**/{branch}'
391 - autorelease-generate-release-notes
397 name: '{project-name}-validate-autorelease-{stream}'
403 java-version: openjdk8
405 #####################
406 # Job Configuration #
407 #####################
410 project-type: freestyle
411 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
412 # override the build node.
413 node: centos7-builder-2c-8g
415 jdk: '{java-version}'
418 - lf-infra-properties:
419 build-days-to-keep: 7
422 - lf-infra-parameters:
426 lftools-version: '{lftools-version}'
427 - autorelease-release-tag:
428 release-tag: validate
431 default: '{git-url}/releng/autorelease'
432 description: "Autorelease clone URL"
437 credentials-id: 'opendaylight-jenkins-ssh'
447 - opendaylight-infra-wrappers:
448 build-timeout: '{build-timeout}'
451 - gerrit-trigger-patch-submitted:
452 gerrit-server-name: '{gerrit-server-name}'
458 - autorelease-checkout-gerrit-patch
459 - autorelease-compare-projects
460 - jacoco-nojava-workaround
461 - shell: "./scripts/list-project-dependencies.sh"
462 - autorelease-determine-merge-order
463 - autorelease-generate-release-patches
464 # In a perfect world projects should be releasing separately and we consume them
465 # via a project that pulls the release bits from each project from Nexus.
466 # Keep the patches compatible with that ideal, but apply an edit
467 # to enable building in a single maven reactor afterwards.
468 - autorelease-fix-relative-paths
471 pom: validate-pom.xml
473 clean install dependency:tree
476 {opendaylight-infra-mvn-opts}
479 settings: autorelease-settings
481 global-settings: global-settings
482 global-settings-type: cfp
483 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
484 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom
491 {opendaylight-infra-mvn-opts}
493 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
494 settings: autorelease-settings
496 global-settings: global-settings
497 global-settings-type: cfp
503 - email-notification:
504 email-recipients: '{email-recipients}'
505 email-prefix: '[autorelease] [{project-name}]'