Create new stream stable 1908 for sweetcomb
[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       - '1908':
36           branch: 'stable/1908'
37           repo-stream-part: 'stable.1908'
38       - '1904':
39           branch: 'stable/1904'
40           repo-stream-part: 'stable.1904'
41       - '1901':
42           branch: 'stable/1901'
43           repo-stream-part: 'stable.1901'
44       - vom:
45           branch: 'vom'
46           repo-stream-part: 'vom'
47
48 - project:
49     name: sweetcomb-view
50     views:
51       - project-view
52     project-name: sweetcomb
53
54 - job-template:
55     name: 'sweetcomb-verify-{stream}-{os}'
56
57     project-type: freestyle
58     node: '{os}-us'
59     concurrent: true
60     archive-artifacts: >
61       **/build-root/build-package/*.rpm
62       **/build-root/build-package/*.deb
63     allow-empty: 'true'
64     fingerprint: false
65     only-if-success: true
66     default-excludes: false
67
68     build-discarder:
69       daysToKeep: '{build-days-to-keep}'
70       numToKeep: 100
71       artifactDaysToKeep: '{build-artifact-days-to-keep}'
72       artifactNumToKeep: '{build-artifact-num-to-keep}'
73
74     parameters:
75       - project-parameter:
76           project: '{project}'
77       - gerrit-parameter:
78           branch: '{branch}'
79       - os-parameter:
80           os: '{os}'
81       - repo-name-parameter:
82           repo-name: '{repo-stream-part}.{repo-os-part}'
83       - stream-parameter:
84           stream: '{stream}'
85       - string:
86           name: ARCHIVE_ARTIFACTS
87           default: '{archive-artifacts}'
88           description: Artifacts to archive to the logs server.
89
90     scm:
91       - gerrit-trigger-scm:
92           credentials-id: 'jenkins-gerrit-credentials'
93           refspec: '$GERRIT_REFSPEC'
94           choosing-strategy: 'gerrit'
95
96     wrappers:
97       - fdio-infra-wrappers:
98           build-timeout: 120
99
100     triggers:
101       - gerrit-trigger-checkstyle:
102           name: '{project}'
103           branch: '{branch}'
104       - gerrit-trigger-patch-submitted:
105           name: '{project}'
106           branch: '{branch}'
107
108     builders:
109       - config-file-provider:
110           files:
111             - file-id: '.packagecloud'
112               target: '/root'
113       - config-file-provider:
114           files:
115             - file-id: 'packagecloud_api'
116               target: '/root'
117       - shell:
118           !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
119       - shell:
120           !include-raw-escape:
121           - include-raw-sweetcomb-build.sh
122     publishers:
123       - fdio-infra-shiplogs:
124           maven-version: 'mvn33-new'
125       - naginator:
126           rerun-unstable-builds: false
127           max-failed-builds: 1
128           fixed-delay: 90
129
130 - job-template:
131     name: 'sweetcomb-merge-{stream}-{os}'
132
133     project-type: freestyle
134     node: '{os}-us'
135     archive-artifacts: >
136       **/build-root/build-package/*.rpm
137       **/build-root/build-package/*.deb
138     allow-empty: 'true'
139     fingerprint: false
140     only-if-success: true
141     default-excludes: false
142
143     build-discarder:
144       daysToKeep: '{build-days-to-keep}'
145       numToKeep: 100
146       artifactDaysToKeep: '{build-artifact-days-to-keep}'
147       artifactNumToKeep: '{build-artifact-num-to-keep}'
148
149     parameters:
150       - project-parameter:
151           project: '{project}'
152       - gerrit-parameter:
153           branch: '{branch}'
154       - os-parameter:
155           os: '{os}'
156       - stream-parameter:
157           stream: '{stream}'
158       - repo-name-parameter:
159           repo-name: '{repo-stream-part}.{repo-os-part}'
160       - string:
161           name: ARCHIVE_ARTIFACTS
162           default: '{archive-artifacts}'
163           description: Artifacts to archive to the logs server.
164
165     scm:
166       - gerrit-trigger-scm:
167           credentials-id: 'jenkins-gerrit-credentials'
168           refspec: ''
169           choosing-strategy: 'default'
170
171     wrappers:
172       - fdio-infra-wrappers:
173           build-timeout: '{build-timeout}'
174
175     triggers:
176       - gerrit-trigger-patch-merged:
177           name: '{project}'
178           branch: '{branch}'
179
180     builders:
181       - config-file-provider:
182           files:
183             - file-id: '.packagecloud'
184               target: '/root'
185       - config-file-provider:
186           files:
187             - file-id: 'packagecloud_api'
188               target: '/root'
189       - shell:
190           !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
191       - shell:
192           !include-raw-escape:
193           - include-raw-sweetcomb-build.sh
194       - shell:
195           !include-raw-escape:
196           - ../scripts/packagecloud_push.sh
197     publishers:
198       - fdio-infra-shiplogs:
199           maven-version: 'mvn33-new'
200       - naginator:
201           rerun-unstable-builds: false
202           max-failed-builds: 1
203           fixed-delay: 90
204
205 - job-template:
206     name: 'sweetcomb-test-{stream}-ubuntu1604'
207
208     project-type: freestyle
209     node: 'ubuntu1604-us'
210     concurrent: true
211
212     build-discarder:
213       daysToKeep: '{build-days-to-keep}'
214       numToKeep: 100
215       artifactDaysToKeep: '{build-artifact-days-to-keep}'
216       artifactNumToKeep: '{build-artifact-num-to-keep}'
217
218     parameters:
219       - project-parameter:
220           project: '{project}'
221       - gerrit-parameter:
222           branch: '{branch}'
223       - os-parameter:
224           os: 'ubuntu1604'
225       - repo-name-parameter:
226           repo-name: '{repo-stream-part}.ubuntu.xenial.main'
227       - stream-parameter:
228           stream: '{stream}'
229
230     scm:
231       - gerrit-trigger-scm:
232           credentials-id: 'jenkins-gerrit-credentials'
233           refspec: '$GERRIT_REFSPEC'
234           choosing-strategy: 'gerrit'
235
236     wrappers:
237       - fdio-infra-wrappers:
238           build-timeout: 120
239
240     triggers:
241       - gerrit-trigger-patch-submitted:
242           name: '{project}'
243           branch: '{branch}'
244
245     builders:
246       - config-file-provider:
247           files:
248             - file-id: '.packagecloud'
249               target: '/root'
250       - config-file-provider:
251           files:
252             - file-id: 'packagecloud_api'
253               target: '/root'
254       - shell:
255           !include-raw-escape:
256           - include-raw-sweetcomb-build.sh
257           - include-raw-sweetcomb-test.sh
258     publishers:
259       - fdio-infra-shiplogs:
260           maven-version: 'mvn33-new'
261       - naginator:
262           rerun-unstable-builds: false
263           max-failed-builds: 1
264           fixed-delay: 90
265
266 - project:
267     name: sweetcomb-info
268     project-name: sweetcomb
269     jobs:
270       - gerrit-info-yaml-verify
271     build-node: centos7-builder-4c-4g
272     project: sweetcomb
273     branch: master