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 DRY_RUN is enabled modifications are not published to Gerrit.
294 - lf-infra-gerrit-scm:
295 git-url: '$GIT_URL/$GERRIT_PROJECT'
297 refspec: 'refs/heads/{branch}'
298 jenkins-ssh-credential: opendaylight-jenkins-ssh
299 submodule-recursive: true
300 choosing-strategy: default
305 jenkins-ssh-credential: opendaylight-jenkins-ssh
308 # force jenkins install of maven version before any shell scripts use it
312 settings: autorelease-settings
314 global-settings: global-settings
315 global-settings-type: cfp
317 - shell: !include-raw-escape:
318 - ../global-jjb/shell/lftools-install.sh
325 name: 'autorelease-generate-release-notes-{stream}'
327 ######################
328 # Default parameters #
329 ######################
331 gerrit_merge_triggers:
332 - comment-added-contains-event:
333 comment-contains-value: generate-release-notes .+$
335 #####################
336 # Job Configuration #
337 #####################
339 project-type: freestyle
340 node: centos7-builder-2c-8g
343 - lf-infra-properties:
344 build-days-to-keep: 7
347 - lf-infra-parameters:
351 lftools-version: '{lftools-version}'
354 description: Release to generate release notes for.
357 - lf-infra-gerrit-scm:
358 git-url: '$GIT_URL/$GERRIT_PROJECT'
359 branch: '$GERRIT_BRANCH'
360 refspec: '$GERRIT_REFSPEC'
361 jenkins-ssh-credential: opendaylight-jenkins-ssh
362 submodule-recursive: true
363 choosing-strategy: default
368 jenkins-ssh-credential: opendaylight-jenkins-ssh
372 server-name: '{gerrit-server-name}'
373 trigger-on: '{obj:gerrit_merge_triggers}'
375 - project-compare-type: ANT
376 project-pattern: '{project}'
378 - branch-compare-type: ANT
379 branch-pattern: '**/{branch}'
382 - autorelease-generate-release-notes
388 name: '{project-name}-validate-autorelease-{stream}'
394 java-version: openjdk8
396 #####################
397 # Job Configuration #
398 #####################
401 project-type: freestyle
402 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
403 # override the build node.
404 node: centos7-builder-2c-8g
406 jdk: '{java-version}'
409 - lf-infra-properties:
410 build-days-to-keep: 7
413 - lf-infra-parameters:
417 lftools-version: '{lftools-version}'
418 - autorelease-release-tag:
419 release-tag: validate
422 default: '{git-url}/releng/autorelease'
423 description: "Autorelease clone URL"
428 credentials-id: 'opendaylight-jenkins-ssh'
438 - opendaylight-infra-wrappers:
439 build-timeout: '{build-timeout}'
442 - gerrit-trigger-patch-submitted:
443 gerrit-server-name: '{gerrit-server-name}'
449 - autorelease-checkout-gerrit-patch
450 - jacoco-nojava-workaround
451 - shell: "./scripts/list-project-dependencies.sh"
452 - autorelease-determine-merge-order
453 - autorelease-generate-release-patches
454 # In a perfect world projects should be releasing separately and we consume them
455 # via a project that pulls the release bits from each project from Nexus.
456 # Keep the patches compatible with that ideal, but apply an edit
457 # to enable building in a single maven reactor afterwards.
458 - autorelease-fix-relative-paths
461 pom: validate-pom.xml
463 clean install dependency:tree
466 {opendaylight-infra-mvn-opts}
469 settings: autorelease-settings
471 global-settings: global-settings
472 global-settings-type: cfp
473 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
474 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom
481 {opendaylight-infra-mvn-opts}
483 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
484 settings: autorelease-settings
486 global-settings: global-settings
487 global-settings-type: cfp
493 - email-notification:
494 email-recipients: '{email-recipients}'
495 email-prefix: '[autorelease] [{project-name}]'