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