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: '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}
208 ######################
209 # Default parameters #
210 ######################
214 #####################
215 # Job configuration #
216 #####################
218 project-type: freestyle
219 node: centos7-builder-2c-1g
222 - lf-infra-properties:
223 build-days-to-keep: 7
226 - lf-infra-parameters:
227 project: releng/builder
230 lftools-version: '{lftools-version}'
233 - lf-infra-gerrit-scm:
234 git-url: '$GIT_URL/releng/builder'
236 refspec: 'refs/heads/master'
237 jenkins-ssh-credential: opendaylight-jenkins-ssh
238 submodule-recursive: true
239 choosing-strategy: default
244 server-name: '{gerrit-server-name}'
246 - change-merged-event
247 - comment-added-contains-event:
248 comment-contains-value: remerge$
250 - project-compare-type: ANT
251 project-pattern: '{project}'
253 - branch-compare-type: ANT
254 branch-pattern: '**/{branch}'
262 jenkins-ssh-credential: opendaylight-jenkins-ssh
265 - autorelease-update-validate-projects
266 - opendaylight-infra-push-gerrit-patch:
267 project: 'releng/builder'
268 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
269 gerrit-commit-message: |
270 Update validate autorelease projects for {stream}
276 name: autorelease-version-bump-{stream}
277 project-type: freestyle
281 - opendaylight-infra-properties:
282 build-days-to-keep: 7
285 - lf-infra-parameters:
286 project: releng/autorelease
289 refspec: 'refs/heads/{branch}'
290 lftools-version: '{lftools-version}'
293 default: '{next-release-tag}'
295 Release that is being version bumped.
296 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
301 If BRANCH_CUT is enabled, perform version bump for branch cutting
302 workflow, else perform version bump for simultaneous release
308 If DRY_RUN is enabled modifications are not published to Gerrit
309 and artifacts are not pushed to Nexus. Instead the build will be
310 performed using the goals "clean install".
315 - lf-infra-gerrit-scm:
316 git-url: '$GIT_URL/$GERRIT_PROJECT'
318 refspec: 'refs/heads/{branch}'
319 jenkins-ssh-credential: opendaylight-jenkins-ssh
320 submodule-recursive: true
321 choosing-strategy: default
326 jenkins-ssh-credential: opendaylight-jenkins-ssh
329 # force jenkins install of maven version before any shell scripts use it
333 settings: autorelease-settings
335 global-settings: global-settings
336 global-settings-type: cfp
338 - shell: !include-raw-escape:
339 - ../global-jjb/shell/lftools-install.sh
346 name: 'autorelease-generate-release-notes-{stream}'
348 ######################
349 # Default parameters #
350 ######################
352 gerrit_merge_triggers:
353 - comment-added-contains-event:
354 comment-contains-value: generate-release-notes .+$
356 #####################
357 # Job Configuration #
358 #####################
360 project-type: freestyle
361 node: centos7-builder-2c-8g
364 - lf-infra-properties:
365 build-days-to-keep: 7
368 - lf-infra-parameters:
372 lftools-version: '{lftools-version}'
375 description: Release to generate release notes for.
378 - lf-infra-gerrit-scm:
379 git-url: '$GIT_URL/$GERRIT_PROJECT'
380 branch: '$GERRIT_BRANCH'
381 refspec: '$GERRIT_REFSPEC'
382 jenkins-ssh-credential: opendaylight-jenkins-ssh
383 submodule-recursive: true
384 choosing-strategy: default
389 jenkins-ssh-credential: opendaylight-jenkins-ssh
393 server-name: '{gerrit-server-name}'
394 trigger-on: '{obj:gerrit_merge_triggers}'
396 - project-compare-type: ANT
397 project-pattern: '{project}'
399 - branch-compare-type: ANT
400 branch-pattern: '**/{branch}'
403 - autorelease-generate-release-notes
409 name: '{project-name}-validate-autorelease-{stream}'
415 java-version: openjdk8
417 #####################
418 # Job Configuration #
419 #####################
422 project-type: freestyle
423 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
424 # override the build node.
425 node: centos7-builder-2c-8g
427 jdk: '{java-version}'
430 - lf-infra-properties:
431 build-days-to-keep: 7
434 - lf-infra-parameters:
438 lftools-version: '{lftools-version}'
439 - autorelease-release-tag:
440 release-tag: validate
443 default: '{git-url}/releng/autorelease'
444 description: "Autorelease clone URL"
449 credentials-id: 'opendaylight-jenkins-ssh'
459 - opendaylight-infra-wrappers:
460 build-timeout: '{build-timeout}'
463 - gerrit-trigger-patch-submitted:
464 gerrit-server-name: '{gerrit-server-name}'
470 - autorelease-checkout-gerrit-patch
471 - autorelease-compare-projects
472 - jacoco-nojava-workaround
473 - shell: "./scripts/list-project-dependencies.sh"
474 - autorelease-determine-merge-order
475 - autorelease-generate-release-patches
476 # In a perfect world projects should be releasing separately and we consume them
477 # via a project that pulls the release bits from each project from Nexus.
478 # Keep the patches compatible with that ideal, but apply an edit
479 # to enable building in a single maven reactor afterwards.
480 - autorelease-fix-relative-paths
483 pom: validate-pom.xml
485 clean install dependency:tree
488 {opendaylight-infra-mvn-opts}
491 settings: autorelease-settings
493 global-settings: global-settings
494 global-settings-type: cfp
495 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
496 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
503 {opendaylight-infra-mvn-opts}
505 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
506 settings: autorelease-settings
508 global-settings: global-settings
509 global-settings-type: cfp
515 - email-notification:
516 email-recipients: '{email-recipients}'
517 email-prefix: '[autorelease] [{project-name}]'