Merge "Update bgp ingest suite not to use netconf-connector in carbon"
[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: DOWNLOAD_URL
37            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'
38            description: 'URL to ODL tarball artifact to repackage into RPM'
39         - string:
40             name: SYSD_COMMIT
41             default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
42             description: 'Version of ODL systemd unitfile to download and package in ODL RPM'
43         - string:
44             name: CHANGELOG_DATE
45             default: 'Sun Aug 25 1991'
46             description: 'Date this RPM was defined'
47         - string:
48             name: CHANGELOG_NAME
49             default: 'Jenkins'
50             description: 'Name of person who defined RPM'
51         - string:
52             name: CHANGELOG_EMAIL
53             default: 'jenkins-donotreply@opendaylight.org'
54             description: 'Email of person who defined RPM'
55
56     scm:
57         - integration-gerrit-scm:
58             basedir: 'packaging'
59             refspec: '$GERRIT_REFSPEC'
60             branch: 'master'
61
62     wrappers:
63         - opendaylight-infra-wrappers:
64             build-timeout: '{build-timeout}'
65
66     builders:
67         - shell: !include-raw: include-raw-build-rpm.sh
68
69     publishers:
70     - archive-artifacts:
71         artifacts: '**/*.rpm'
72
73 - job-template:
74     name: '{project-name}-build-rpm-snap-{stream}'
75
76     node: dynamic_verify
77
78     project-type: freestyle
79
80     properties:
81         - opendaylight-infra-properties:
82             build-days-to-keep: 7
83
84     parameters:
85         - opendaylight-infra-parameters:
86             project: '{project}'
87             branch: '{branch}'
88             refspec: 'refs/heads/{branch}'
89             artifacts: '{archive-artifacts}'
90         - string:
91             name: VERSION_MAJOR
92             default: '5'
93             description: 'OpenDaylight major (element) version number to build'
94         - string:
95             name: VERSION_MINOR
96             default: '2'
97             description: 'OpenDaylight minor (SR) version number to build'
98         - string:
99             name: SYSD_COMMIT
100             default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
101             description: 'Version of ODL systemd unitfile to download and package in ODL RPM'
102         - string:
103             name: CHANGELOG_NAME
104             default: 'Jenkins'
105             description: 'Name of person who defined RPM'
106         - string:
107             name: CHANGELOG_EMAIL
108             default: 'jenkins-donotreply@opendaylight.org'
109             description: 'Email of person who defined RPM'
110
111     scm:
112         - integration-gerrit-scm:
113             basedir: 'packaging'
114             refspec: '$GERRIT_REFSPEC'
115             branch: 'master'
116
117     wrappers:
118         - opendaylight-infra-wrappers:
119             build-timeout: '{build-timeout}'
120
121     builders:
122         - shell: !include-raw: include-raw-build-rpm-snap.sh
123
124     publishers:
125     - archive-artifacts:
126          artifacts: '**/*.rpm'
127
128 - job-template:
129     name: '{project-name}-test-rpm-{stream}'
130
131     node: dynamic_verify
132
133     parameters:
134         - opendaylight-infra-parameters:
135             project: '{project}'
136             branch: '{branch}'
137             refspec: 'refs/heads/{branch}'
138             artifacts: '{archive-artifacts}'
139         - string:
140             name: URL
141             default: 'https://raw.githubusercontent.com/opendaylight/integration-packaging/master/rpm/example_repo_configs/opendaylight-51-release.repo'
142             description: 'Link to .repo or .rpm file'
143         - string:
144             name: REPO_FILE
145             default: '/etc/yum.repos.d/opendaylight-51-release.repo'
146             description: 'Name of the .repo file'
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-test-rpm.sh
160         - shell: !include-raw: include-raw-test-karaf.sh
161
162     publishers:
163     - archive-artifacts:
164          artifacts: '**'
165
166 - job-template:
167     name: '{project-name}-build-deb-{stream}'
168
169     node: ubuntu_mininet
170
171     project-type: freestyle
172
173     properties:
174         - opendaylight-infra-properties:
175             build-days-to-keep: 7
176
177     parameters:
178         - opendaylight-infra-parameters:
179             project: '{project}'
180             branch: '{branch}'
181             refspec: 'refs/heads/{branch}'
182             artifacts: '{archive-artifacts}'
183         - string:
184             name: VERSION_MAJOR
185             default: '5'
186             description: 'OpenDaylight major (element) version number to build'
187         - string:
188             name: VERSION_MINOR
189             default: '0'
190             description: 'OpenDaylight minor (SR) version number to build'
191         - string:
192             name: VERSION_PATCH
193             default: '0'
194             description: 'OpenDaylight patch version to build'
195         - string:
196             name: PKG_VERSION
197             default: '1'
198             description: 'Deb version for the given ODL major.minor.patch'
199         - string:
200             name: SYSD_COMMIT
201             default: '07f7c83b0ef46ad3809e5be03e09a77fe554eeae'
202             description: 'Version of ODL systemd unitfile to download and package in ODL .deb'
203         - string:
204             name: CODENAME
205             default: 'Boron'
206             description: 'Elemental codename for the ODL release, including SR if applicable'
207         - string:
208             name: DOWNLOAD_URL
209             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'
210             description: 'URL to ODL tarball artifact to repackage into .deb'
211         - string:
212             name: JAVA_VERSION
213             default: '8'
214             description: Java dependency for the ODL release
215         - string:
216             name: CHANGELOG_DATE
217             default: 'Mon, 1 Aug 2016'
218             description: 'Date this .deb was defined'
219         - string:
220             name: CHANGELOG_TIME
221             default: '17:48:42 +0530'
222             description: 'Time this .deb was defined'
223         - string:
224             name: CHANGELOG_NAME
225             default: 'Jenkins'
226             description: 'Name of person who defined .deb'
227         - string:
228             name: CHANGELOG_EMAIL
229             default: 'jenkins-donotreply@opendaylight.org'
230             description: 'Email of person who defined .deb'
231
232     scm:
233         - integration-gerrit-scm:
234             basedir: 'packaging'
235             refspec: '$GERRIT_REFSPEC'
236             branch: 'master'
237
238     wrappers:
239         - opendaylight-infra-wrappers:
240             build-timeout: '{build-timeout}'
241
242     builders:
243         - shell: !include-raw: include-raw-build-deb.sh
244
245     publishers:
246     - archive-artifacts:
247         artifacts: 'packaging/deb/opendaylight/*.deb'