2 # Autorelease build jobs
4 name: 'autorelease-release-{stream}'
6 project-type: freestyle
7 node: centos7-autorelease-4c-16g
11 # Default variable values
15 - opendaylight-infra-properties:
16 build-days-to-keep: '30'
20 maven-version: 'mvn33'
21 - opendaylight-infra-parameters:
22 os-cloud: '{os-cloud}'
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
27 - distribution-karaf-version:
28 karaf-version: '{karaf-version}'
29 - autorelease-release-tag:
30 release-tag: '{next-release-tag}'
31 - autorelease-release-branch:
32 release-branch: '{branch}'
35 default: '{extra-mvn-opts}'
37 Additional optional Maven Options to pass to the Maven Goals
41 -Dskip.karaf.featureTest=true # To disable karaf SingleFeatureTests
42 --fail-never # NEVER fail the build, regardless of project result
43 --fail-at-end # Only fail the build afterwards; allow all non-impacted builds to continue
47 credentials-id: 'opendaylight-jenkins-ssh'
49 refspec: '$GERRIT_REFSPEC'
52 choosing-strategy: 'gerrit'
59 - opendaylight-infra-wrappers:
66 # force jenkins install of maven version before any shell scripts use it
68 maven-version: 'mvn33'
70 settings: 'autorelease-settings'
72 global-settings: 'odl-global-settings'
73 global-settings-type: cfp
74 - wipe-local-maven-repo
75 - jacoco-nojava-workaround
76 - shell: "./scripts/list-project-dependencies.sh"
77 - autorelease-determine-merge-order
79 autorelease-settings: 'autorelease-settings'
80 odl-global-settings: 'odl-global-settings'
81 - autorelease-generate-taglist
82 - autorelease-distribute-taglist
83 - distribute-build-url:
84 path: 'integration/distribution/$KARAF_ARTIFACT/src/main/assembly'
85 - autorelease-generate-release-patches
86 # In a perfect world projects should be releasing separately and we consume them
87 # via a project that pulls the release bits from each project from Nexus.
88 # Keep the patches compatible with that ideal, but apply an edit
89 # to enable building in a single maven reactor afterwards.
90 - autorelease-fix-relative-paths
92 maven-version: 'mvn33'
97 -Pintegrationtests,docs,repoBuild
98 -Dcheckstyle.skip=true
99 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
100 {opendaylight-infra-mvn-opts}
102 - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
103 settings: 'autorelease-settings'
105 global-settings: 'odl-global-settings'
106 global-settings-type: cfp
107 - autorelease-maven-deploy
108 - autorelease-get-integration-test-variables
109 - autorelease-maven-sources:
110 opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
111 maven-version: 'mvn33'
112 settings: 'autorelease-settings'
113 global-settings: 'odl-global-settings'
114 - autorelease-maven-sources-post-process
120 - opendaylight-infra-notify-status
121 - opendaylight-infra-sysstats
123 # Need to archive dependencies.log in Jenkins to provide a simple
124 # way for downstream jobs to pull the latest version of this file
126 artifacts: 'dependencies.log'
127 - trigger-parameterized-builds:
128 - project: 'autorelease-generate-release-notes-{stream}'
129 condition: UNSTABLE_OR_BETTER
130 property-file: variables.jenkins-trigger
131 fail-on-missing: true
132 - project: 'integration-distribution-test-{integration-test}'
133 condition: UNSTABLE_OR_BETTER
134 property-file: variables.jenkins-trigger
135 fail-on-missing: true
136 - project: 'integration-distribution-test-{integration-test}'
138 trigger-with-no-params: true
139 - project: 'integration-sanity-test-{integration-test}'
140 condition: UNSTABLE_OR_BETTER
141 property-file: variables.jenkins-trigger
142 fail-on-missing: true
143 - project: 'integration-sanity-test-{integration-test}'
145 trigger-with-no-params: true
146 - project: 'packaging-build-rpm-master'
147 condition: UNSTABLE_OR_BETTER
148 predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
149 property-file: variables.jenkins-trigger
150 fail-on-missing: true
151 - opendaylight-infra-shiplogs:
152 maven-version: 'mvn33'
155 name: autorelease-version-bump-{stream}
156 project-type: freestyle
157 node: centos7-autorelease-4c-16g
160 - opendaylight-infra-properties:
161 build-days-to-keep: 7
164 - lf-infra-parameters:
165 project: releng/autorelease
167 refspec: 'refs/heads/{branch}'
170 default: '{next-release-tag}'
172 Release that is being version bumped.
173 Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
178 If DRY_RUN is enabled modifications are not published to Gerrit.
183 - lf-infra-gerrit-scm:
185 refspec: 'refs/heads/{branch}'
186 jenkins-ssh-credential: opendaylight-jenkins-ssh
187 submodule-recursive: true
188 choosing-strategy: default
193 jenkins-ssh-credential: opendaylight-jenkins-ssh
196 # force jenkins install of maven version before any shell scripts use it
200 settings: autorelease-settings
202 global-settings: odl-global-settings
203 global-settings-type: cfp
205 - shell: !include-raw-escape:
206 - ../global-jjb/shell/lftools-install.sh
213 name: 'autorelease-generate-release-notes-{stream}'
215 project-type: freestyle
216 node: centos7-java-builder-2c-8g
219 - opendaylight-infra-properties:
220 build-days-to-keep: '{build-days-to-keep}'
223 - opendaylight-infra-parameters:
224 os-cloud: '{os-cloud}'
227 refspec: 'refs/heads/{branch}'
228 artifacts: '{archive-artifacts}'
232 credentials-id: 'opendaylight-jenkins-ssh'
234 refspec: '$GERRIT_REFSPEC'
237 choosing-strategy: 'gerrit'
243 - opendaylight-infra-wrappers:
250 # force jenkins install of maven version before any shell scripts use it
252 maven-version: 'mvn33'
254 settings: 'autorelease-settings'
256 global-settings: 'odl-global-settings'
257 global-settings-type: cfp
259 maven-version: 'mvn33'
260 pom: '$WORKSPACE/scripts/release_notes_management/pom.xml'
263 -Dcheckstyle.skip=true
264 -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
265 {opendaylight-infra-mvn-opts}
267 - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
268 settings: 'autorelease-settings'
270 global-settings: 'odl-global-settings'
271 global-settings-type: cfp
272 - autorelease-generate-release-notes
275 - opendaylight-infra-sysstats
276 - opendaylight-infra-shiplogs:
277 maven-version: 'mvn33'