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 -Dkaraf.keep.unpack=true
157 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
158 {opendaylight-infra-mvn-opts}
160 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
161 settings: 'autorelease-settings'
163 global-settings: 'global-settings'
164 global-settings-type: cfp
165 - autorelease-maven-deploy
166 - autorelease-get-integration-test-variables
167 - autorelease-maven-sources:
168 opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
169 maven-version: 'mvn33'
170 settings: 'autorelease-settings'
171 global-settings: 'global-settings'
172 - autorelease-maven-sources-post-process
176 for file in $(find . -name karaf.log); do
177 module="${{file%%/target/*}}"
178 module="${{module##*/}}"
179 cp "$file" "archives/${{module}}-karaf.log"
183 - opendaylight-infra-notify-status
184 - trigger-parameterized-builds:
185 - project: 'integration-distribution-test-{integration-test}'
186 condition: UNSTABLE_OR_BETTER
187 property-file: variables.jenkins-trigger
188 fail-on-missing: true
189 - project: 'integration-distribution-test-{integration-test}'
191 trigger-with-no-params: true
192 - project: 'integration-sanity-test-{integration-test}'
193 condition: UNSTABLE_OR_BETTER
194 property-file: variables.jenkins-trigger
195 fail-on-missing: true
196 - project: 'integration-sanity-test-{integration-test}'
198 trigger-with-no-params: true
199 - project: 'packaging-build-rpm-{stream}'
200 condition: UNSTABLE_OR_BETTER
201 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
202 property-file: variables.jenkins-trigger
203 fail-on-missing: true
204 - project: 'packaging-build-deb-{stream}'
205 condition: UNSTABLE_OR_BETTER
206 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
207 property-file: variables.jenkins-trigger
208 fail-on-missing: true
212 name: autorelease-update-validate-jobs-{stream}
213 project-type: freestyle
214 node: centos7-builder-2c-1g
217 - lf-infra-properties:
218 build-days-to-keep: 7
221 - lf-infra-parameters:
222 project: releng/builder
225 lftools-version: '{lftools-version}'
228 - lf-infra-gerrit-scm:
229 git-url: '$GIT_URL/releng/builder'
231 refspec: 'refs/heads/master'
232 jenkins-ssh-credential: opendaylight-jenkins-ssh
233 submodule-recursive: true
234 choosing-strategy: default
238 server-name: '{gerrit-server-name}'
240 - change-merged-event
241 - comment-added-contains-event:
242 comment-contains-value: remerge$
244 - project-compare-type: ANT
245 project-pattern: '{project}'
247 - branch-compare-type: ANT
248 branch-pattern: '**/{branch}'
256 jenkins-ssh-credential: opendaylight-jenkins-ssh
259 - autorelease-update-validate-projects
260 - opendaylight-infra-push-gerrit-patch:
261 project: 'releng/builder'
262 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
263 gerrit-commit-message: |
264 Update validate autorelease projects for {stream}
270 name: autorelease-version-bump-{stream}
271 project-type: freestyle
275 - opendaylight-infra-properties:
276 build-days-to-keep: 7
279 - lf-infra-parameters:
280 project: releng/autorelease
283 refspec: 'refs/heads/{branch}'
284 lftools-version: '{lftools-version}'
287 default: '{next-release-tag}'
289 Release that is being version bumped.
290 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
295 If BRANCH_CUT is enabled, perform version bump for branch cutting
296 workflow, else perform version bump for simultaneous release
302 If DRY_RUN is enabled modifications are not published to Gerrit
303 and artifacts are not pushed to Nexus. Instead the build will be
304 performed using the goals "clean install".
309 - lf-infra-gerrit-scm:
310 git-url: '$GIT_URL/$GERRIT_PROJECT'
312 refspec: 'refs/heads/{branch}'
313 jenkins-ssh-credential: opendaylight-jenkins-ssh
314 submodule-recursive: true
315 choosing-strategy: default
320 jenkins-ssh-credential: opendaylight-jenkins-ssh
323 # force jenkins install of maven version before any shell scripts use it
327 settings: autorelease-settings
329 global-settings: global-settings
330 global-settings-type: cfp
332 - shell: !include-raw-escape:
333 - ../global-jjb/shell/lftools-install.sh
340 name: 'autorelease-generate-release-notes-{stream}'
342 ######################
343 # Default parameters #
344 ######################
346 gerrit_merge_triggers:
347 - comment-added-contains-event:
348 comment-contains-value: generate-release-notes .+$
350 #####################
351 # Job Configuration #
352 #####################
354 project-type: freestyle
355 node: centos7-builder-2c-8g
358 - lf-infra-properties:
359 build-days-to-keep: 7
362 - lf-infra-parameters:
366 lftools-version: '{lftools-version}'
369 description: Release to generate release notes for.
372 - lf-infra-gerrit-scm:
373 git-url: '$GIT_URL/$GERRIT_PROJECT'
374 branch: '$GERRIT_BRANCH'
375 refspec: '$GERRIT_REFSPEC'
376 jenkins-ssh-credential: opendaylight-jenkins-ssh
377 submodule-recursive: true
378 choosing-strategy: default
383 jenkins-ssh-credential: opendaylight-jenkins-ssh
387 server-name: '{gerrit-server-name}'
388 trigger-on: '{obj:gerrit_merge_triggers}'
390 - project-compare-type: ANT
391 project-pattern: '{project}'
393 - branch-compare-type: ANT
394 branch-pattern: '**/{branch}'
397 - autorelease-generate-release-notes
403 name: '{project-name}-validate-autorelease-{stream}'
409 java-version: openjdk8
411 #####################
412 # Job Configuration #
413 #####################
416 project-type: freestyle
417 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
418 # override the build node.
419 node: centos7-builder-2c-8g
421 jdk: '{java-version}'
424 - lf-infra-properties:
425 build-days-to-keep: 7
428 - lf-infra-parameters:
432 lftools-version: '{lftools-version}'
433 - autorelease-release-tag:
434 release-tag: validate
437 default: '{git-url}/releng/autorelease'
438 description: "Autorelease clone URL"
443 credentials-id: 'opendaylight-jenkins-ssh'
453 - opendaylight-infra-wrappers:
454 build-timeout: '{build-timeout}'
457 - gerrit-trigger-patch-submitted:
458 gerrit-server-name: '{gerrit-server-name}'
464 - autorelease-checkout-gerrit-patch
465 - autorelease-compare-projects
466 - jacoco-nojava-workaround
467 - shell: "./scripts/list-project-dependencies.sh"
468 - autorelease-determine-merge-order
469 - autorelease-generate-release-patches
470 # In a perfect world projects should be releasing separately and we consume them
471 # via a project that pulls the release bits from each project from Nexus.
472 # Keep the patches compatible with that ideal, but apply an edit
473 # to enable building in a single maven reactor afterwards.
474 - autorelease-fix-relative-paths
477 pom: validate-pom.xml
479 clean install dependency:tree
482 {opendaylight-infra-mvn-opts}
485 settings: autorelease-settings
487 global-settings: global-settings
488 global-settings-type: cfp
489 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
490 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom
497 -Dkaraf.keep.unpack=true
498 {opendaylight-infra-mvn-opts}
500 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
501 settings: autorelease-settings
503 global-settings: global-settings
504 global-settings-type: cfp
508 for file in $(find . -name karaf.log); do
509 module="${{file%%/target/*}}"
510 module="${{module##*/}}"
511 cp "$file" "archives/${{module}}-karaf.log"
515 - email-notification:
516 email-recipients: '{email-recipients}'
517 email-prefix: '[autorelease] [{project-name}]'