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
290 and artifacts are not pushed to Nexus. Instead the build will be
291 performed using the goals "clean install".
296 - lf-infra-gerrit-scm:
297 git-url: '$GIT_URL/$GERRIT_PROJECT'
299 refspec: 'refs/heads/{branch}'
300 jenkins-ssh-credential: opendaylight-jenkins-ssh
301 submodule-recursive: true
302 choosing-strategy: default
307 jenkins-ssh-credential: opendaylight-jenkins-ssh
310 # force jenkins install of maven version before any shell scripts use it
314 settings: autorelease-settings
316 global-settings: global-settings
317 global-settings-type: cfp
319 - shell: !include-raw-escape:
320 - ../global-jjb/shell/lftools-install.sh
327 name: 'autorelease-generate-release-notes-{stream}'
329 ######################
330 # Default parameters #
331 ######################
333 gerrit_merge_triggers:
334 - comment-added-contains-event:
335 comment-contains-value: generate-release-notes .+$
337 #####################
338 # Job Configuration #
339 #####################
341 project-type: freestyle
342 node: centos7-builder-2c-8g
345 - lf-infra-properties:
346 build-days-to-keep: 7
349 - lf-infra-parameters:
353 lftools-version: '{lftools-version}'
356 description: Release to generate release notes for.
359 - lf-infra-gerrit-scm:
360 git-url: '$GIT_URL/$GERRIT_PROJECT'
361 branch: '$GERRIT_BRANCH'
362 refspec: '$GERRIT_REFSPEC'
363 jenkins-ssh-credential: opendaylight-jenkins-ssh
364 submodule-recursive: true
365 choosing-strategy: default
370 jenkins-ssh-credential: opendaylight-jenkins-ssh
374 server-name: '{gerrit-server-name}'
375 trigger-on: '{obj:gerrit_merge_triggers}'
377 - project-compare-type: ANT
378 project-pattern: '{project}'
380 - branch-compare-type: ANT
381 branch-pattern: '**/{branch}'
384 - autorelease-generate-release-notes
390 name: '{project-name}-validate-autorelease-{stream}'
396 java-version: openjdk8
398 #####################
399 # Job Configuration #
400 #####################
403 project-type: freestyle
404 # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
405 # override the build node.
406 node: centos7-builder-2c-8g
408 jdk: '{java-version}'
411 - lf-infra-properties:
412 build-days-to-keep: 7
415 - lf-infra-parameters:
419 lftools-version: '{lftools-version}'
420 - autorelease-release-tag:
421 release-tag: validate
424 default: '{git-url}/releng/autorelease'
425 description: "Autorelease clone URL"
430 credentials-id: 'opendaylight-jenkins-ssh'
440 - opendaylight-infra-wrappers:
441 build-timeout: '{build-timeout}'
444 - gerrit-trigger-patch-submitted:
445 gerrit-server-name: '{gerrit-server-name}'
451 - autorelease-checkout-gerrit-patch
452 - jacoco-nojava-workaround
453 - shell: "./scripts/list-project-dependencies.sh"
454 - autorelease-determine-merge-order
455 - autorelease-generate-release-patches
456 # In a perfect world projects should be releasing separately and we consume them
457 # via a project that pulls the release bits from each project from Nexus.
458 # Keep the patches compatible with that ideal, but apply an edit
459 # to enable building in a single maven reactor afterwards.
460 - autorelease-fix-relative-paths
463 pom: validate-pom.xml
465 clean install dependency:tree
468 {opendaylight-infra-mvn-opts}
471 settings: autorelease-settings
473 global-settings: global-settings
474 global-settings-type: cfp
475 # Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
476 - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom
483 {opendaylight-infra-mvn-opts}
485 - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
486 settings: autorelease-settings
488 global-settings: global-settings
489 global-settings-type: cfp
495 - email-notification:
496 email-recipients: '{email-recipients}'
497 email-prefix: '[autorelease] [{project-name}]'