Merge "Add method to not trigger downstream ar-jobs"
[releng/builder.git] / jjb / packaging / packaging.yaml
1 ---
2 - project:
3     name: packaging
4     project-name: packaging
5
6     jobs:
7       - '{project-name}-verify-tox-master'
8       - 'packaging-build-rpm-{stream}'
9       - 'packaging-build-rpm-snap-{stream}'
10       - 'packaging-build-deb-{stream}'
11       - 'packaging-test-rpm-master'
12       - 'packaging-test-rpm-upgrade-master'
13       - 'packaging-test-deb-master'
14
15     project: 'integration/packaging'
16
17     stream:
18       - boron
19       - carbon
20       - nitrogen
21     branch: 'master'
22
23
24 - job-template:
25     name: 'packaging-build-rpm-{stream}'
26
27     node: centos7-java-builder-2c-4g
28
29     project-type: freestyle
30
31     mvn-opts: ''
32     mvn-params: ''
33     mvn-version: mvn33
34
35     properties:
36       - opendaylight-infra-properties:
37           build-days-to-keep: 7
38
39     parameters:
40       - opendaylight-infra-parameters:
41           os-cloud: '{os-cloud}'
42           project: '{project}'
43           branch: '{branch}'
44           refspec: 'refs/heads/{branch}'
45           artifacts: '{archive-artifacts}'
46       - lf-infra-maven-parameters:
47           mvn-opts: '{mvn-opts}'
48           mvn-params: '{mvn-params}'
49           mvn-version: '{mvn-version}'
50           staging-profile-id: ''
51       - string:
52           name: DOWNLOAD_URL
53           # yamllint disable-line rule:line-length
54           default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz'
55           description: 'URL to ODL tarball artifact to repackage into RPM'
56       - string:
57           name: CHANGELOG_NAME
58           default: 'Jenkins'
59           description: 'Name of person who defined RPM'
60       - string:
61           name: CHANGELOG_EMAIL
62           default: 'jenkins-donotreply@opendaylight.org'
63           description: 'Email of person who defined RPM'
64
65     scm:
66       - integration-gerrit-scm:
67           basedir: 'packaging'
68           refspec: '$GERRIT_REFSPEC'
69           branch: 'master'
70
71     wrappers:
72       - opendaylight-infra-wrappers:
73           build-timeout: '{build-timeout}'
74
75     builders:
76       - shell: !include-raw: include-raw-build-rpm.sh
77       - lf-infra-deploy-maven-file:
78           global-settings-file: 'global-settings'
79           settings-file: 'packaging-settings'
80           mvn-version: 'mvn33'
81           repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
82           group-id: 'org.opendaylight.integration-packaging'
83           files-dir: '$WORKSPACE/upload_files'
84
85     publishers:
86       - lf-infra-publish
87
88
89 - job-template:
90     name: 'packaging-build-rpm-snap-{stream}'
91
92     node: centos7-java-builder-2c-4g
93
94     project-type: freestyle
95
96     mvn-opts: ''
97     mvn-params: ''
98     mvn-version: mvn33
99
100     properties:
101       - opendaylight-infra-properties:
102           build-days-to-keep: 7
103
104     parameters:
105       - opendaylight-infra-parameters:
106           os-cloud: '{os-cloud}'
107           project: '{project}'
108           branch: '{branch}'
109           refspec: 'refs/heads/{branch}'
110           artifacts: '{archive-artifacts}'
111       - lf-infra-maven-parameters:
112           mvn-opts: '{mvn-opts}'
113           mvn-params: '{mvn-params}'
114           mvn-version: '{mvn-version}'
115           staging-profile-id: ''
116       - string:
117           name: VERSION_MAJOR
118           default: '7'
119           description: 'OpenDaylight major (element) version number to build'
120       - string:
121           name: VERSION_MINOR
122           default: '0'
123           description: 'OpenDaylight minor (SR) version number to build'
124       - string:
125           name: CHANGELOG_NAME
126           default: 'Jenkins'
127           description: 'Name of person who defined RPM'
128       - string:
129           name: CHANGELOG_EMAIL
130           default: 'jenkins-donotreply@opendaylight.org'
131           description: 'Email of person who defined RPM'
132
133     scm:
134       - integration-gerrit-scm:
135           basedir: 'packaging'
136           refspec: '$GERRIT_REFSPEC'
137           branch: 'master'
138
139     wrappers:
140       - opendaylight-infra-wrappers:
141           build-timeout: '{build-timeout}'
142
143     builders:
144       - shell: !include-raw: include-raw-build-rpm-snap.sh
145       - lf-infra-deploy-maven-file:
146           global-settings-file: 'global-settings'
147           settings-file: 'packaging-settings'
148           mvn-version: 'mvn33'
149           repo-id: 'opendaylight-{stream}-epel-7-x86_64-devel'
150           group-id: 'org.opendaylight.integration-packaging'
151           files-dir: '$WORKSPACE/upload_files'
152
153     triggers:
154       - timed: '@daily'
155
156     publishers:
157       - lf-infra-publish
158
159
160 - job-template:
161     name: 'packaging-test-rpm-master'
162
163     node: centos7-java-builder-2c-4g
164
165     parameters:
166       - opendaylight-infra-parameters:
167           os-cloud: '{os-cloud}'
168           project: '{project}'
169           branch: '{branch}'
170           refspec: 'refs/heads/{branch}'
171           artifacts: '{archive-artifacts}'
172       - string:
173           name: URL
174           # yamllint disable-line rule:line-length
175           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-60-release.repo'
176           description: 'Link to .repo or .rpm file'
177
178     scm:
179       - integration-gerrit-scm:
180           basedir: 'packaging'
181           refspec: '$GERRIT_REFSPEC'
182           branch: 'master'
183
184     wrappers:
185       - opendaylight-infra-wrappers:
186           build-timeout: '{build-timeout}'
187
188     builders:
189       - shell: !include-raw: include-raw-install-rpm.sh
190       - shell: !include-raw: include-raw-start-odl.sh
191       - shell: |
192           # Install expect to interact with Karaf shell
193           sudo yum install -y expect
194           # Install nmap to check status of ODL's SSH port
195           sudo yum install -y nmap
196       - shell: !include-raw: include-raw-test-karaf.expect
197       - shell: !include-raw: include-raw-stop-odl.sh
198
199     publishers:
200       - archive-artifacts:
201           artifacts: '**'
202       - lf-infra-publish
203
204
205 - job-template:
206     name: 'packaging-test-rpm-upgrade-master'
207
208     node: centos7-java-builder-2c-4g
209
210     parameters:
211       - opendaylight-infra-parameters:
212           os-cloud: '{os-cloud}'
213           project: '{project}'
214           branch: '{branch}'
215           refspec: 'refs/heads/{branch}'
216           artifacts: '{archive-artifacts}'
217       - string:
218           name: URL
219           # yamllint disable-line rule:line-length
220           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-release.repo'
221           description: 'Link to .repo or .rpm file'
222       - string:
223           name: UPGRADE_URL
224           # yamllint disable-line rule:line-length
225           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-6-testing.repo'
226           description: 'Link to .repo or .rpm file'
227
228     scm:
229       - integration-gerrit-scm:
230           basedir: 'packaging'
231           refspec: '$GERRIT_REFSPEC'
232           branch: 'master'
233
234     wrappers:
235       - opendaylight-infra-wrappers:
236           build-timeout: '{build-timeout}'
237
238     builders:
239       - shell: !include-raw: include-raw-install-rpm.sh
240       - shell: !include-raw: include-raw-start-odl.sh
241       - shell: |
242           # Install expect to interact with Karaf shell
243           sudo yum install -y expect
244           # Install nmap to check status of ODL's SSH port
245           sudo yum install -y nmap
246       - shell: !include-raw: include-raw-test-karaf.expect
247       - shell: !include-raw: include-raw-stop-odl.sh
248       - shell: !include-raw: include-raw-test-rpm-upgrade.sh
249       - shell: !include-raw: include-raw-start-odl.sh
250       - shell: !include-raw: include-raw-test-karaf.expect
251       - shell: !include-raw: include-raw-stop-odl.sh
252
253     publishers:
254       - lf-infra-publish
255
256
257 - job-template:
258     name: 'packaging-test-deb-master'
259
260     node: ubuntu1604-mininet-ovs-25-2c-4g
261
262     parameters:
263       - opendaylight-infra-parameters:
264           os-cloud: '{os-cloud}'
265           project: '{project}'
266           branch: '{branch}'
267           refspec: 'refs/heads/{branch}'
268           artifacts: '{archive-artifacts}'
269       - string:
270           name: PACKAGE
271           default: 'ppa:odl-team/carbon'
272           description: 'Link to .deb package or name of PPA repo'
273
274     scm:
275       - integration-gerrit-scm:
276           basedir: 'packaging'
277           refspec: '$GERRIT_REFSPEC'
278           branch: 'master'
279
280     wrappers:
281       - opendaylight-infra-wrappers:
282           build-timeout: '{build-timeout}'
283
284     builders:
285       - shell: !include-raw: include-raw-install-deb.sh
286       - shell: !include-raw: include-raw-start-odl.sh
287       - shell: |
288           # Install expect to interact with Karaf shell
289           sudo apt-get install -y expect
290           # Install nmap to check status of ODL's SSH port
291           sudo apt-get install -y nmap
292       - shell: !include-raw: include-raw-test-karaf.expect
293       - shell: !include-raw: include-raw-stop-odl.sh
294
295     publishers:
296       - lf-infra-publish
297
298
299 - job-template:
300     name: 'packaging-build-deb-{stream}'
301
302     node: ubuntu1604-mininet-ovs-25-2c-4g
303
304     project-type: freestyle
305
306     mvn-opts: ''
307     mvn-params: ''
308     mvn-version: mvn33
309
310     properties:
311       - opendaylight-infra-properties:
312           build-days-to-keep: 7
313
314     parameters:
315       - opendaylight-infra-parameters:
316           os-cloud: '{os-cloud}'
317           project: '{project}'
318           branch: '{branch}'
319           refspec: 'refs/heads/{branch}'
320           artifacts: '{archive-artifacts}'
321       - lf-infra-maven-parameters:
322           mvn-opts: '{mvn-opts}'
323           mvn-params: '{mvn-params}'
324           mvn-version: '{mvn-version}'
325           staging-profile-id: ''
326       - string:
327           name: VERSION_MAJOR
328           default: '5'
329           description: 'OpenDaylight major (element) version number to build'
330       - string:
331           name: VERSION_MINOR
332           default: '3'
333           description: 'OpenDaylight minor (SR) version number to build'
334       - string:
335           name: VERSION_PATCH
336           default: '0'
337           description: 'OpenDaylight patch version to build'
338       - string:
339           name: PKG_VERSION
340           default: '1'
341           description: 'Deb version for the given ODL major.minor.patch'
342       - string:
343           name: SYSD_COMMIT
344           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
345           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
346       - string:
347           name: CODENAME
348           default: 'Boron-SR3'
349           description: 'Elemental codename for the ODL release, including SR if applicable'
350       - string:
351           name: DOWNLOAD_URL
352           # yamllint disable-line rule:line-length
353           default: 'https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.5.3-Boron-SR3/distribution-karaf-0.5.3-Boron-SR3.tar.gz'
354           description: 'URL to ODL tarball artifact to repackage into .deb'
355       - string:
356           name: JAVA_VERSION
357           default: '8'
358           description: Java dependency for the ODL release
359       - string:
360           name: JAVA_HOME
361           default: '/usr/lib/jvm/java-8-openjdk-amd64/'
362           description: Set JAVA_HOME to openjdk8
363       - string:
364           name: CHANGELOG_DATE
365           default: 'Mon, 1 Aug 2016'
366           description: 'Date this .deb was defined'
367       - string:
368           name: CHANGELOG_TIME
369           default: '17:48:42 +0530'
370           description: 'Time this .deb was defined'
371       - string:
372           name: CHANGELOG_NAME
373           default: 'Jenkins'
374           description: 'Name of person who defined .deb'
375       - string:
376           name: CHANGELOG_EMAIL
377           default: 'jenkins-donotreply@opendaylight.org'
378           description: 'Email of person who defined .deb'
379
380     scm:
381       - integration-gerrit-scm:
382           basedir: 'packaging'
383           refspec: '$GERRIT_REFSPEC'
384           branch: 'master'
385
386     wrappers:
387       - opendaylight-infra-wrappers:
388           build-timeout: '{build-timeout}'
389
390     builders:
391       - shell: !include-raw: include-raw-build-deb.sh
392       - lf-infra-deploy-maven-file:
393           global-settings-file: 'global-settings'
394           settings-file: 'packaging-settings'
395           mvn-version: '{mvn-version}'
396           repo-id: 'opendaylight-{stream}-ubuntu-1604-x86_64-devel'
397           group-id: 'org.opendaylight.integration-packaging'
398           files-dir: '$WORKSPACE/upload_files'
399
400     publishers:
401       - lf-infra-publish