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