Capture logs for all packaging 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-{stream}'
8       - 'packaging-build-rpm-{stream}'
9       - 'packaging-build-rpm-snap-{stream}'
10       - 'packaging-build-deb-{stream}'
11       - 'packaging-test-rpm-{stream}'
12       - 'packaging-test-deb-{stream}'
13
14     project: 'integration/packaging'
15
16     stream:
17       - master:
18           branch: 'master'
19
20 - job-template:
21     name: 'packaging-build-rpm-{stream}'
22
23     node: centos7-java-builder-2c-4g
24
25     project-type: freestyle
26
27     properties:
28       - opendaylight-infra-properties:
29           build-days-to-keep: 7
30
31     parameters:
32       - opendaylight-infra-parameters:
33           os-cloud: '{os-cloud}'
34           project: '{project}'
35           branch: '{branch}'
36           refspec: 'refs/heads/{branch}'
37           artifacts: '{archive-artifacts}'
38       - string:
39           name: DOWNLOAD_URL
40           # yamllint disable-line rule:line-length
41           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'
42           description: 'URL to ODL tarball artifact to repackage into RPM'
43       - string:
44           name: CHANGELOG_NAME
45           default: 'Jenkins'
46           description: 'Name of person who defined RPM'
47       - string:
48           name: CHANGELOG_EMAIL
49           default: 'jenkins-donotreply@opendaylight.org'
50           description: 'Email of person who defined RPM'
51
52     scm:
53       - integration-gerrit-scm:
54           basedir: 'packaging'
55           refspec: '$GERRIT_REFSPEC'
56           branch: 'master'
57
58     wrappers:
59       - opendaylight-infra-wrappers:
60           build-timeout: '{build-timeout}'
61
62     builders:
63       - shell: !include-raw: include-raw-build-rpm.sh
64
65     publishers:
66       - archive-artifacts:
67           artifacts: '**/*.rpm'
68       - lf-infra-publish
69
70
71 - job-template:
72     name: 'packaging-build-rpm-snap-{stream}'
73
74     node: centos7-java-builder-2c-4g
75
76     project-type: freestyle
77
78     properties:
79       - opendaylight-infra-properties:
80           build-days-to-keep: 7
81
82     parameters:
83       - opendaylight-infra-parameters:
84           os-cloud: '{os-cloud}'
85           project: '{project}'
86           branch: '{branch}'
87           refspec: 'refs/heads/{branch}'
88           artifacts: '{archive-artifacts}'
89       - string:
90           name: VERSION_MAJOR
91           default: '7'
92           description: 'OpenDaylight major (element) version number to build'
93       - string:
94           name: VERSION_MINOR
95           default: '0'
96           description: 'OpenDaylight minor (SR) version number to build'
97       - string:
98           name: CHANGELOG_NAME
99           default: 'Jenkins'
100           description: 'Name of person who defined RPM'
101       - string:
102           name: CHANGELOG_EMAIL
103           default: 'jenkins-donotreply@opendaylight.org'
104           description: 'Email of person who defined RPM'
105
106     scm:
107       - integration-gerrit-scm:
108           basedir: 'packaging'
109           refspec: '$GERRIT_REFSPEC'
110           branch: 'master'
111
112     wrappers:
113       - opendaylight-infra-wrappers:
114           build-timeout: '{build-timeout}'
115
116     builders:
117       - shell: !include-raw: include-raw-build-rpm-snap.sh
118
119     triggers:
120       - timed: '@daily'
121
122     publishers:
123       - archive-artifacts:
124           artifacts: '**/*.rpm'
125       - lf-infra-publish
126
127
128 - job-template:
129     name: 'packaging-test-rpm-{stream}'
130
131     node: centos7-java-builder-2c-4g
132
133     parameters:
134       - opendaylight-infra-parameters:
135           os-cloud: '{os-cloud}'
136           project: '{project}'
137           branch: '{branch}'
138           refspec: 'refs/heads/{branch}'
139           artifacts: '{archive-artifacts}'
140       - string:
141           name: URL
142           # yamllint disable-line rule:line-length
143           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-52-release.repo'
144           description: 'Link to .repo or .rpm file'
145
146     scm:
147       - integration-gerrit-scm:
148           basedir: 'packaging'
149           refspec: '$GERRIT_REFSPEC'
150           branch: 'master'
151
152     wrappers:
153       - opendaylight-infra-wrappers:
154           build-timeout: '{build-timeout}'
155
156     builders:
157       - shell: !include-raw: include-raw-test-rpm.sh
158       - shell: !include-raw: include-raw-test-karaf.expect
159
160     publishers:
161       - archive-artifacts:
162           artifacts: '**'
163       - lf-infra-publish
164
165
166 - job-template:
167     name: 'packaging-test-deb-{stream}'
168
169     node: ubuntu1604-mininet-ovs-25-2c-4g
170
171     parameters:
172       - opendaylight-infra-parameters:
173           os-cloud: '{os-cloud}'
174           project: '{project}'
175           branch: '{branch}'
176           refspec: 'refs/heads/{branch}'
177           artifacts: '{archive-artifacts}'
178       - string:
179           name: PACKAGE
180           # yamllint disable-line rule:line-length
181           default: 'https://launchpad.net/~odl-team/+archive/ubuntu/carbon/+files/opendaylight_6.0.0-1_all.deb'
182           description: 'Link to .deb file or name of custom PPA repo (ppa:odl-team/carbon)'
183
184     scm:
185       - integration-gerrit-scm:
186           basedir: 'packaging'
187           refspec: '$GERRIT_REFSPEC'
188           branch: 'master'
189
190     wrappers:
191       - opendaylight-infra-wrappers:
192           build-timeout: '{build-timeout}'
193
194     builders:
195       - shell: !include-raw: include-raw-test-deb.sh
196       - shell: !include-raw: include-raw-test-karaf.expect
197
198     publishers:
199       - archive-artifacts:
200           artifacts: '**'
201       - lf-infra-publish
202
203 - job-template:
204     name: 'packaging-build-deb-{stream}'
205
206     node: ubuntu1404-mininet-2c-2g
207
208     project-type: freestyle
209
210     properties:
211       - opendaylight-infra-properties:
212           build-days-to-keep: 7
213
214     parameters:
215       - opendaylight-infra-parameters:
216           os-cloud: '{os-cloud}'
217           project: '{project}'
218           branch: '{branch}'
219           refspec: 'refs/heads/{branch}'
220           artifacts: '{archive-artifacts}'
221       - string:
222           name: VERSION_MAJOR
223           default: '5'
224           description: 'OpenDaylight major (element) version number to build'
225       - string:
226           name: VERSION_MINOR
227           default: '3'
228           description: 'OpenDaylight minor (SR) version number to build'
229       - string:
230           name: VERSION_PATCH
231           default: '0'
232           description: 'OpenDaylight patch version to build'
233       - string:
234           name: PKG_VERSION
235           default: '1'
236           description: 'Deb version for the given ODL major.minor.patch'
237       - string:
238           name: SYSD_COMMIT
239           default: 'ba1f409c1a46efd068b16ced6ddc8b32a412b03a'
240           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
241       - string:
242           name: CODENAME
243           default: 'Boron-SR3'
244           description: 'Elemental codename for the ODL release, including SR if applicable'
245       - string:
246           name: DOWNLOAD_URL
247           # yamllint disable-line rule:line-length
248           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'
249           description: 'URL to ODL tarball artifact to repackage into .deb'
250       - string:
251           name: JAVA_VERSION
252           default: '8'
253           description: Java dependency for the ODL release
254       - string:
255           name: CHANGELOG_DATE
256           default: 'Mon, 1 Aug 2016'
257           description: 'Date this .deb was defined'
258       - string:
259           name: CHANGELOG_TIME
260           default: '17:48:42 +0530'
261           description: 'Time this .deb was defined'
262       - string:
263           name: CHANGELOG_NAME
264           default: 'Jenkins'
265           description: 'Name of person who defined .deb'
266       - string:
267           name: CHANGELOG_EMAIL
268           default: 'jenkins-donotreply@opendaylight.org'
269           description: 'Email of person who defined .deb'
270
271     scm:
272       - integration-gerrit-scm:
273           basedir: 'packaging'
274           refspec: '$GERRIT_REFSPEC'
275           branch: 'master'
276
277     wrappers:
278       - opendaylight-infra-wrappers:
279           build-timeout: '{build-timeout}'
280
281     builders:
282       - shell: !include-raw: include-raw-build-deb.sh
283
284     publishers:
285       - archive-artifacts:
286           artifacts: 'packaging/deb/opendaylight/*.deb'
287       - lf-infra-publish