Merge "Fix yamllint for sfc"
[releng/builder.git] / jjb / packaging / packaging.yaml
1 ---
2 - project:
3     name: packaging
4     project-name: packaging
5
6     jobs:
7       - '{project-name}-verify-python-{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-puppet-{stream}'
13
14     project: 'integration/packaging'
15
16     stream:
17       - master:
18           branch: 'master'
19
20 - job-template:
21     name: 'packaging-test-puppet-{stream}'
22
23     node: centos7-docker-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           project: '{project}'
34           branch: '{branch}'
35           refspec: 'refs/heads/{branch}'
36           artifacts: '{archive-artifacts}'
37
38     scm:
39       - integration-gerrit-scm:
40           basedir: 'packaging'
41           refspec: '$GERRIT_REFSPEC'
42           branch: 'master'
43
44     wrappers:
45       - opendaylight-infra-wrappers:
46           build-timeout: '{build-timeout}'
47
48     builders:
49       - shell: !include-raw: include-raw-test-puppet.sh
50
51     triggers:
52       - timed: '@daily'
53
54 - job-template:
55     name: 'packaging-build-rpm-{stream}'
56
57     node: centos7-java-builder-2c-4g
58
59     project-type: freestyle
60
61     properties:
62       - opendaylight-infra-properties:
63           build-days-to-keep: 7
64
65     parameters:
66       - opendaylight-infra-parameters:
67           project: '{project}'
68           branch: '{branch}'
69           refspec: 'refs/heads/{branch}'
70           artifacts: '{archive-artifacts}'
71       - string:
72           name: DOWNLOAD_URL
73           # yamllint disable-line rule:line-length
74           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'
75           description: 'URL to ODL tarball artifact to repackage into RPM'
76       - string:
77           name: SYSD_COMMIT
78           default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
79           description: 'Version of ODL systemd unitfile to download and package in ODL RPM'
80       - string:
81           name: CHANGELOG_DATE
82           default: 'Sun Aug 25 1991'
83           description: 'Date this RPM was defined'
84       - string:
85           name: CHANGELOG_NAME
86           default: 'Jenkins'
87           description: 'Name of person who defined RPM'
88       - string:
89           name: CHANGELOG_EMAIL
90           default: 'jenkins-donotreply@opendaylight.org'
91           description: 'Email of person who defined RPM'
92
93     scm:
94       - integration-gerrit-scm:
95           basedir: 'packaging'
96           refspec: '$GERRIT_REFSPEC'
97           branch: 'master'
98
99     wrappers:
100       - opendaylight-infra-wrappers:
101           build-timeout: '{build-timeout}'
102
103     builders:
104       - shell: !include-raw: include-raw-build-rpm.sh
105
106     publishers:
107       - archive-artifacts:
108           artifacts: '**/*.rpm'
109
110 - job-template:
111     name: 'packaging-build-rpm-snap-{stream}'
112
113     node: centos7-java-builder-2c-4g
114
115     project-type: freestyle
116
117     properties:
118       - opendaylight-infra-properties:
119           build-days-to-keep: 7
120
121     parameters:
122       - opendaylight-infra-parameters:
123           project: '{project}'
124           branch: '{branch}'
125           refspec: 'refs/heads/{branch}'
126           artifacts: '{archive-artifacts}'
127       - string:
128           name: VERSION_MAJOR
129           default: '5'
130           description: 'OpenDaylight major (element) version number to build'
131       - string:
132           name: VERSION_MINOR
133           default: '2'
134           description: 'OpenDaylight minor (SR) version number to build'
135       - string:
136           name: SYSD_COMMIT
137           default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
138           description: 'Version of ODL systemd unitfile to download and package in ODL RPM'
139       - string:
140           name: CHANGELOG_NAME
141           default: 'Jenkins'
142           description: 'Name of person who defined RPM'
143       - string:
144           name: CHANGELOG_EMAIL
145           default: 'jenkins-donotreply@opendaylight.org'
146           description: 'Email of person who defined RPM'
147
148     scm:
149       - integration-gerrit-scm:
150           basedir: 'packaging'
151           refspec: '$GERRIT_REFSPEC'
152           branch: 'master'
153
154     wrappers:
155       - opendaylight-infra-wrappers:
156           build-timeout: '{build-timeout}'
157
158     builders:
159       - shell: !include-raw: include-raw-build-rpm-snap.sh
160
161     publishers:
162       - archive-artifacts:
163           artifacts: '**/*.rpm'
164
165 - job-template:
166     name: 'packaging-test-rpm-{stream}'
167
168     node: centos7-java-builder-2c-4g
169
170     parameters:
171       - opendaylight-infra-parameters:
172           project: '{project}'
173           branch: '{branch}'
174           refspec: 'refs/heads/{branch}'
175           artifacts: '{archive-artifacts}'
176       - string:
177           name: URL
178           # yamllint disable-line rule:line-length
179           default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-51-release.repo'
180           description: 'Link to .repo or .rpm file'
181       - string:
182           name: REPO_FILE
183           default: '/etc/yum.repos.d/opendaylight-51-release.repo'
184           description: 'Name of the .repo file'
185
186     scm:
187       - integration-gerrit-scm:
188           basedir: 'packaging'
189           refspec: '$GERRIT_REFSPEC'
190           branch: 'master'
191
192     wrappers:
193       - opendaylight-infra-wrappers:
194           build-timeout: '{build-timeout}'
195
196     builders:
197       - shell: !include-raw: include-raw-test-rpm.sh
198       - shell: !include-raw: include-raw-test-karaf.sh
199
200     publishers:
201       - archive-artifacts:
202           artifacts: '**'
203
204 - job-template:
205     name: 'packaging-build-deb-{stream}'
206
207     node: ubuntu-trusty-mininet-2c-2g
208
209     project-type: freestyle
210
211     properties:
212       - opendaylight-infra-properties:
213           build-days-to-keep: 7
214
215     parameters:
216       - opendaylight-infra-parameters:
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: '0'
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: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
240           description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
241       - string:
242           name: CODENAME
243           default: 'Boron'
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/public/org/opendaylight/integration/distribution-karaf/0.5.0-Boron/distribution-karaf-0.5.0-Boron.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'