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-validate-projects
275 - opendaylight-infra-push-gerrit-patch:
276 project: 'releng/builder'
277 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
278 gerrit-commit-message: |
279 Update validate autorelease projects for {stream}
285 name: autorelease-version-bump-{stream}
286 project-type: freestyle
290 - opendaylight-infra-properties:
291 build-days-to-keep: 7
294 - lf-infra-parameters:
295 project: releng/autorelease
298 refspec: 'refs/heads/{branch}'
299 lftools-version: '{lftools-version}'
302 default: '{next-release-tag}'
304 Release that is being version bumped.
305 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
310 If BRANCH_CUT is enabled, perform version bump for branch cutting
311 workflow, else perform version bump for simultaneous release
317 If DRY_RUN is enabled modifications are not published to Gerrit
318 and artifacts are not pushed to Nexus. Instead the build will be
319 performed using the goals "clean install".
324 - lf-infra-gerrit-scm:
325 git-url: '$GIT_URL/$GERRIT_PROJECT'
327 refspec: 'refs/heads/{branch}'
328 jenkins-ssh-credential: opendaylight-jenkins-ssh
329 submodule-recursive: true
330 choosing-strategy: default
335 jenkins-ssh-credential: opendaylight-jenkins-ssh
338 # force jenkins install of maven version before any shell scripts use it
342 settings: autorelease-settings
344 global-settings: global-settings
345 global-settings-type: cfp
347 - shell: !include-raw-escape:
348 - ../global-jjb/shell/lftools-install.sh
355 name: 'autorelease-generate-release-notes-{stream}'
357 ######################
358 # Default parameters #
359 ######################
361 gerrit_merge_triggers:
362 - comment-added-contains-event:
363 comment-contains-value: generate-release-notes .+$
365 #####################
366 # Job Configuration #
367 #####################
369 project-type: freestyle
370 node: centos7-builder-2c-8g
373 - lf-infra-properties:
374 build-days-to-keep: 7
377 - lf-infra-parameters:
381 lftools-version: '{lftools-version}'
384 description: Release to generate release notes for.
387 - lf-infra-gerrit-scm:
388 git-url: '$GIT_URL/$GERRIT_PROJECT'
389 branch: '$GERRIT_BRANCH'
390 refspec: '$GERRIT_REFSPEC'
391 jenkins-ssh-credential: opendaylight-jenkins-ssh
392 submodule-recursive: true
393 choosing-strategy: default
398 jenkins-ssh-credential: opendaylight-jenkins-ssh
402 server-name: '{gerrit-server-name}'
403 trigger-on: '{obj:gerrit_merge_triggers}'
405 - project-compare-type: ANT
406 project-pattern: '{project}'
408 - branch-compare-type: ANT
409 branch-pattern: '**/{branch}'
412 - autorelease-generate-release-notes
418 name: '{project-name}-validate-autorelease-{stream}'
424 java-version: openjdk8
426 #####################
427 # Job Configuration #
428 #####################
431 project-type: freestyle
432 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
433 # override the build node.
434 node: centos7-builder-2c-8g
436 jdk: '{java-version}'
439 - lf-infra-properties:
440 build-days-to-keep: 7
443 - lf-infra-parameters:
447 lftools-version: '{lftools-version}'
448 - autorelease-release-tag:
449 release-tag: validate
452 default: '{git-url}/releng/autorelease'
453 description: "Autorelease clone URL"
458 credentials-id: 'opendaylight-jenkins-ssh'
468 - opendaylight-infra-wrappers:
469 build-timeout: '{build-timeout}'
472 - gerrit-trigger-patch-submitted:
473 gerrit-server-name: '{gerrit-server-name}'
479 - autorelease-checkout-gerrit-patch
480 - autorelease-compare-projects
481 - jacoco-nojava-workaround
482 - shell: "./scripts/list-project-dependencies.sh"
483 - autorelease-determine-merge-order
484 - autorelease-generate-release-patches
485 # In a perfect world projects should be releasing separately and we consume them
486 # via a project that pulls the release bits from each project from Nexus.
487 # Keep the patches compatible with that ideal, but apply an edit
488 # to enable building in a single maven reactor afterwards.
489 - autorelease-fix-relative-paths
492 pom: validate-pom.xml
494 clean install dependency:tree
497 {opendaylight-infra-mvn-opts}
500 settings: autorelease-settings
502 global-settings: global-settings
503 global-settings-type: cfp
504 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
505 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
512 {opendaylight-infra-mvn-opts}
514 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
515 settings: autorelease-settings
517 global-settings: global-settings
518 global-settings-type: cfp
524 - email-notification:
525 email-recipients: '{email-recipients}'
526 email-prefix: '[autorelease] [{project-name}]'