Merge "Remove Ligato daily until it will support nightly VPP"
[ci-management.git] / jjb / sweetcomb / sweetcomb.yaml
1 ---
2 #########################################################################
3 #
4 # Copyright (c) 2018 Intel and/or its affiliates.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #########################################################################
17
18 - project:
19     name: sweetcomb
20     jobs:
21       - 'sweetcomb-verify-{stream}-{os}'
22       - 'sweetcomb-merge-{stream}-{os}'
23       #- 'sweetcomb-test-{stream}-ubuntu1604'
24
25     project: 'sweetcomb'
26     os:
27       - ubuntu1604:
28           repo-os-part: 'ubuntu.xenial.main'
29       - centos7:
30           repo-os-part: 'centos7'
31     stream:
32       - master:
33           branch: 'master'
34           repo-stream-part: 'master'
35       - '1904':
36           branch: 'stable/1904'
37           repo-stream-part: 'stable.1904'
38       - '1901':
39           branch: 'stable/1901'
40           repo-stream-part: 'stable.1901'
41
42 - project:
43     name: sweetcomb-view
44     views:
45       - project-view
46     project-name: sweetcomb
47
48 - job-template:
49     name: 'sweetcomb-verify-{stream}-{os}'
50
51     project-type: freestyle
52     node: '{os}-us'
53     concurrent: true
54
55     build-discarder:
56       daysToKeep: '{build-days-to-keep}'
57       numToKeep: 100
58       artifactDaysToKeep: '{build-artifact-days-to-keep}'
59       artifactNumToKeep: '{build-artifact-num-to-keep}'
60
61       archive-artifacts: >
62           **/build-root/build-package/*.rpm
63           **/build-root/build-package/*.deb
64       allow-empty: 'true'
65       fingerprint: false
66       only-if-success: true
67       default-excludes: false
68
69     parameters:
70       - project-parameter:
71           project: '{project}'
72       - gerrit-parameter:
73           branch: '{branch}'
74       - os-parameter:
75           os: '{os}'
76       - repo-name-parameter:
77           repo-name: '{repo-stream-part}.{repo-os-part}'
78       - stream-parameter:
79           stream: '{stream}'
80       - string:
81           name: ARCHIVE_ARTIFACTS
82           default: '{archive-artifacts}'
83           description: Artifacts to archive to the logs server.
84
85     scm:
86       - gerrit-trigger-scm:
87           credentials-id: 'jenkins-gerrit-credentials'
88           refspec: '$GERRIT_REFSPEC'
89           choosing-strategy: 'gerrit'
90
91     wrappers:
92       - fdio-infra-wrappers:
93           build-timeout: 120
94
95     triggers:
96       - gerrit-trigger-checkstyle:
97           name: '{project}'
98           branch: '{branch}'
99       - gerrit-trigger-patch-submitted:
100           name: '{project}'
101           branch: '{branch}'
102
103     builders:
104       - config-file-provider:
105           files:
106             - file-id: '.packagecloud'
107               target: '/root'
108       - config-file-provider:
109           files:
110             - file-id: 'packagecloud_api'
111               target: '/root'
112       - shell:
113           !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
114       - shell:
115           !include-raw-escape:
116           - include-raw-sweetcomb-build.sh
117     publishers:
118       - fdio-infra-shiplogs:
119           maven-version: 'mvn33-new'
120       - naginator:
121           rerun-unstable-builds: false
122           max-failed-builds: 1
123           fixed-delay: 90
124
125 - job-template:
126     name: 'sweetcomb-merge-{stream}-{os}'
127
128     project-type: freestyle
129     node: '{os}-us'
130
131     build-discarder:
132       daysToKeep: '{build-days-to-keep}'
133       numToKeep: 100
134       artifactDaysToKeep: '{build-artifact-days-to-keep}'
135       artifactNumToKeep: '{build-artifact-num-to-keep}'
136
137     archive-artifacts: >
138         **/build-root/build-package/*.rpm
139         **/build-root/build-package/*.deb
140     allow-empty: 'true'
141     fingerprint: false
142     only-if-success: true
143     default-excludes: false
144
145     parameters:
146       - project-parameter:
147           project: '{project}'
148       - gerrit-parameter:
149           branch: '{branch}'
150       - os-parameter:
151           os: '{os}'
152       - stream-parameter:
153           stream: '{stream}'
154       - repo-name-parameter:
155           repo-name: '{repo-stream-part}.{repo-os-part}'
156       - string:
157           name: ARCHIVE_ARTIFACTS
158           default: '{archive-artifacts}'
159           description: Artifacts to archive to the logs server.
160
161     scm:
162       - gerrit-trigger-scm:
163           credentials-id: 'jenkins-gerrit-credentials'
164           refspec: ''
165           choosing-strategy: 'default'
166
167     wrappers:
168       - fdio-infra-wrappers:
169           build-timeout: '{build-timeout}'
170
171     triggers:
172       - gerrit-trigger-patch-merged:
173           name: '{project}'
174           branch: '{branch}'
175
176     builders:
177       - config-file-provider:
178           files:
179             - file-id: '.packagecloud'
180               target: '/root'
181       - config-file-provider:
182           files:
183             - file-id: 'packagecloud_api'
184               target: '/root'
185       - shell:
186           !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
187       - shell:
188           !include-raw-escape:
189           - include-raw-sweetcomb-build.sh
190       - shell:
191           !include-raw-escape:
192           - ../scripts/packagecloud_push.sh
193     publishers:
194       - fdio-infra-shiplogs:
195           maven-version: 'mvn33-new'
196       - naginator:
197           rerun-unstable-builds: false
198           max-failed-builds: 1
199           fixed-delay: 90
200
201 - job-template:
202     name: 'sweetcomb-test-{stream}-ubuntu1604'
203
204     project-type: freestyle
205     node: 'ubuntu1604-us'
206     concurrent: true
207
208     build-discarder:
209       daysToKeep: '{build-days-to-keep}'
210       numToKeep: 100
211       artifactDaysToKeep: '{build-artifact-days-to-keep}'
212       artifactNumToKeep: '{build-artifact-num-to-keep}'
213
214     archive-artifacts: >
215     allow-empty: 'true'
216     fingerprint: false
217     only-if-success: true
218     default-excludes: false
219
220     parameters:
221       - project-parameter:
222           project: '{project}'
223       - gerrit-parameter:
224           branch: '{branch}'
225       - os-parameter:
226           os: 'ubuntu1604'
227       - repo-name-parameter:
228           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
229       - stream-parameter:
230           stream: '{stream}'
231
232     scm:
233       - gerrit-trigger-scm:
234           credentials-id: 'jenkins-gerrit-credentials'
235           refspec: '$GERRIT_REFSPEC'
236           choosing-strategy: 'gerrit'
237
238     wrappers:
239       - fdio-infra-wrappers:
240           build-timeout: 120
241
242     triggers:
243       - gerrit-trigger-patch-submitted:
244           name: '{project}'
245           branch: '{branch}'
246
247     builders:
248       - config-file-provider:
249           files:
250             - file-id: '.packagecloud'
251               target: '/root'
252       - config-file-provider:
253           files:
254             - file-id: 'packagecloud_api'
255               target: '/root'
256       - shell:
257           !include-raw-escape:
258           - include-raw-sweetcomb-build.sh
259           - include-raw-sweetcomb-test.sh
260     publishers:
261       - fdio-infra-shiplogs:
262           maven-version: 'mvn33-new'
263       - naginator:
264           rerun-unstable-builds: false
265           max-failed-builds: 1
266           fixed-delay: 90