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,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: 'packaging-build-rpm-{stream}'
187 condition: UNSTABLE_OR_BETTER
188 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
189 property-file: variables.jenkins-trigger
190 fail-on-missing: true
191 - project: 'packaging-build-deb-{stream}'
192 condition: UNSTABLE_OR_BETTER
193 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
194 property-file: variables.jenkins-trigger
195 fail-on-missing: true
196 # Critical component of the OpenDaylight community
203 - shell: echo '#topic cookies'
204 mark-unstable-if-failed: false
208 name: autorelease-update-validate-jobs-{stream}
210 ######################
211 # Default parameters #
212 ######################
216 #####################
217 # Job configuration #
218 #####################
220 project-type: freestyle
221 node: centos7-builder-2c-1g
224 - lf-infra-properties:
225 build-days-to-keep: 7
228 - lf-infra-parameters:
229 project: releng/builder
232 lftools-version: '{lftools-version}'
235 - lf-infra-gerrit-scm:
236 git-url: '$GIT_URL/releng/builder'
238 refspec: 'refs/heads/master'
239 jenkins-ssh-credential: opendaylight-jenkins-ssh
240 submodule-recursive: true
241 choosing-strategy: default
246 server-name: '{gerrit-server-name}'
248 - change-merged-event
249 - comment-added-contains-event:
250 comment-contains-value: remerge$
252 - project-compare-type: ANT
253 project-pattern: '{project}'
255 - branch-compare-type: ANT
256 branch-pattern: '**/{branch}'
264 jenkins-ssh-credential: opendaylight-jenkins-ssh
267 - autorelease-update-project-views
268 - autorelease-update-validate-projects
269 - lf-infra-push-gerrit-patch:
271 gerrit-user: 'jenkins-$SILO'
272 gerrit-host: 'git.opendaylight.org'
273 gerrit-topic: 'autorelease-update-validate-jobs-{stream}'
274 gerrit-commit-message: |
275 'Update validate autorelease projects for {stream}'
276 reviewers-email: 'jenkins-releng@opendaylight.org'
282 name: autorelease-version-bump-{stream}
283 project-type: freestyle
287 - opendaylight-infra-properties:
288 build-days-to-keep: 7
291 - lf-infra-parameters:
292 project: releng/autorelease
295 refspec: 'refs/heads/{branch}'
296 lftools-version: '{lftools-version}'
301 Release that is being version bumped.
302 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
307 If BRANCH_CUT is enabled, perform version bump for branch cutting
308 workflow, else perform version bump for simultaneous release
314 If DRY_RUN is enabled modifications are not published to Gerrit
315 and artifacts are not pushed to Nexus. Instead the build will be
316 performed using the goals "clean install".
321 - lf-infra-gerrit-scm:
322 git-url: '$GIT_URL/$GERRIT_PROJECT'
324 refspec: 'refs/heads/{branch}'
325 jenkins-ssh-credential: opendaylight-jenkins-ssh
326 submodule-recursive: true
327 choosing-strategy: default
332 jenkins-ssh-credential: opendaylight-jenkins-ssh
335 # force jenkins install of maven version before any shell scripts use it
339 settings: autorelease-settings
341 global-settings: global-settings
342 global-settings-type: cfp
344 - shell: !include-raw-escape:
345 - ../global-jjb/shell/lftools-install.sh
352 name: 'autorelease-generate-release-notes-{stream}'
354 ######################
355 # Default parameters #
356 ######################
358 gerrit_merge_triggers:
359 - comment-added-contains-event:
360 comment-contains-value: generate-release-notes .+$
362 #####################
363 # Job Configuration #
364 #####################
366 project-type: freestyle
367 node: centos7-builder-2c-8g
370 - lf-infra-properties:
371 build-days-to-keep: 7
374 - lf-infra-parameters:
378 lftools-version: '{lftools-version}'
381 description: Release to generate release notes for.
384 - lf-infra-gerrit-scm:
385 git-url: '$GIT_URL/$GERRIT_PROJECT'
386 branch: '$GERRIT_BRANCH'
387 refspec: '$GERRIT_REFSPEC'
388 jenkins-ssh-credential: opendaylight-jenkins-ssh
389 submodule-recursive: true
390 choosing-strategy: default
395 jenkins-ssh-credential: opendaylight-jenkins-ssh
399 server-name: '{gerrit-server-name}'
400 trigger-on: '{obj:gerrit_merge_triggers}'
402 - project-compare-type: ANT
403 project-pattern: '{project}'
405 - branch-compare-type: ANT
406 branch-pattern: '**/{branch}'
409 - autorelease-generate-release-notes
415 name: '{project-name}-validate-autorelease-{stream}'
421 java-version: openjdk8
423 #####################
424 # Job Configuration #
425 #####################
428 project-type: freestyle
429 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
430 # override the build node.
431 node: centos7-builder-2c-8g
433 jdk: '{java-version}'
436 - lf-infra-properties:
437 build-days-to-keep: 7
440 - lf-infra-parameters:
444 lftools-version: '{lftools-version}'
445 - autorelease-release-tag:
446 release-tag: validate
449 default: '{git-url}/releng/autorelease'
450 description: "Autorelease clone URL"
455 credentials-id: 'opendaylight-jenkins-ssh'
465 - opendaylight-infra-wrappers:
466 build-timeout: '{build-timeout}'
469 - gerrit-trigger-patch-submitted:
470 gerrit-server-name: '{gerrit-server-name}'
477 - autorelease-checkout-gerrit-patch
478 - autorelease-compare-projects
479 - jacoco-nojava-workaround
480 - shell: "./scripts/list-project-dependencies.sh"
481 - autorelease-determine-merge-order
482 - autorelease-generate-release-patches
483 # In a perfect world projects should be releasing separately and we consume them
484 # via a project that pulls the release bits from each project from Nexus.
485 # Keep the patches compatible with that ideal, but apply an edit
486 # to enable building in a single maven reactor afterwards.
487 - autorelease-fix-relative-paths
490 pom: validate-pom.xml
492 clean install dependency:tree
495 {opendaylight-infra-mvn-opts}
498 settings: autorelease-settings
500 global-settings: global-settings
501 global-settings-type: cfp
502 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
503 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
510 {opendaylight-infra-mvn-opts}
512 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
513 settings: autorelease-settings
515 global-settings: global-settings
516 global-settings-type: cfp
522 - email-notification:
523 email-recipients: '{email-recipients}'
524 email-prefix: '[autorelease] [{project-name}]'