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