2 #########################################################################
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:
9 # http://www.apache.org/licenses/LICENSE-2.0
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 #########################################################################
21 - 'sweetcomb-verify-{stream}-{os}'
22 - 'sweetcomb-merge-{stream}-{os}'
23 - 'sweetcomb-test-{stream}-{os}'
28 repo-os-part: 'ubuntu.xenial.main'
30 repo-os-part: 'ubuntu.bionic.main'
32 repo-os-part: 'centos7'
36 repo-stream-part: 'master'
39 repo-stream-part: 'stable.1904'
42 repo-stream-part: 'stable.1901'
48 project-name: sweetcomb
51 name: 'sweetcomb-verify-{stream}-{os}'
53 project-type: freestyle
58 daysToKeep: '{build-days-to-keep}'
60 artifactDaysToKeep: '{build-artifact-days-to-keep}'
61 artifactNumToKeep: '{build-artifact-num-to-keep}'
70 - repo-name-parameter:
71 repo-name: '{repo-stream-part}.{repo-os-part}'
77 credentials-id: 'jenkins-gerrit-credentials'
78 refspec: '$GERRIT_REFSPEC'
79 choosing-strategy: 'gerrit'
82 - fdio-infra-wrappers:
86 - gerrit-trigger-checkstyle:
89 - gerrit-trigger-patch-submitted:
94 - config-file-provider:
96 - file-id: '.packagecloud'
98 - config-file-provider:
100 - file-id: 'packagecloud_api'
103 !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
106 - include-raw-sweetcomb-build.sh
110 **/build-root/build-package/*.rpm,
111 **/build-root/build-package/*.deb,
114 only-if-success: true
115 default-excludes: false
116 - fdio-infra-shiplogs:
117 maven-version: 'mvn33-new'
119 rerun-unstable-builds: false
124 - fdio-infra-shiplogs:
125 maven-version: 'mvn33-new'
128 name: 'sweetcomb-merge-{stream}-{os}'
130 project-type: freestyle
134 daysToKeep: '{build-days-to-keep}'
136 artifactDaysToKeep: '{build-artifact-days-to-keep}'
137 artifactNumToKeep: '{build-artifact-num-to-keep}'
140 **/build-root/build-package/*.rpm
141 **/build-root/build-package/*.deb
144 only-if-success: true
145 default-excludes: false
156 - repo-name-parameter:
157 repo-name: '{repo-stream-part}.{repo-os-part}'
159 name: ARCHIVE_ARTIFACTS
160 default: '{archive-artifacts}'
161 description: Artifacts to archive to the logs server.
165 - gerrit-trigger-scm:
166 credentials-id: 'jenkins-gerrit-credentials'
168 choosing-strategy: 'default'
171 - fdio-infra-wrappers:
172 build-timeout: '{build-timeout}'
175 - gerrit-trigger-patch-merged:
180 - config-file-provider:
182 - file-id: '.packagecloud'
184 - config-file-provider:
186 - file-id: 'packagecloud_api'
189 !include-raw-escape: include-raw-sweetcomb-checkstyle.sh
192 - include-raw-sweetcomb-build.sh
195 - ../scripts/packagecloud_push.sh
199 **/build-root/build-package/*.rpm,
200 **/build-root/build-package/*.deb,
203 only-if-success: true
204 default-excludes: false
205 - fdio-infra-shiplogs:
206 maven-version: 'mvn33-new'
208 rerun-unstable-builds: false
213 name: 'sweetcomb-test-{stream}-{os}'
215 project-type: freestyle
220 daysToKeep: '{build-days-to-keep}'
222 artifactDaysToKeep: '{build-artifact-days-to-keep}'
223 artifactNumToKeep: '{build-artifact-num-to-keep}'
232 - repo-name-parameter:
233 repo-name: '{repo-stream-part}.{repo-os-part}'
238 - gerrit-trigger-scm:
239 credentials-id: 'jenkins-gerrit-credentials'
240 refspec: '$GERRIT_REFSPEC'
241 choosing-strategy: 'gerrit'
244 - fdio-infra-wrappers:
248 - gerrit-trigger-patch-submitted:
253 - config-file-provider:
255 - file-id: '.packagecloud'
257 - config-file-provider:
259 - file-id: 'packagecloud_api'
263 - include-raw-sweetcomb-build.sh
264 - include-raw-sweetcomb-test.sh
269 only-if-success: true
270 default-excludes: false
271 - fdio-infra-shiplogs:
272 maven-version: 'mvn33-new'
274 rerun-unstable-builds: false
279 - fdio-infra-shiplogs:
280 maven-version: 'mvn33-new'