blob: b94f1bdab21691c903db6a05d80095b0b692369c [file] [log] [blame]
Fatih Degirmencie504a2d2019-05-08 11:38:56 +02001---
2#
3# ============LICENSE_START=======================================================
4# Copyright (C) 2019 Nordix Foundation.
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21#--------------------------------------------------------------------------------------
22# The jobs declared in this JJB configuration file are used for verifying cloud-infra
23# engine from the tip of the master branch periodically to check the stability of it.
24#
25# These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
26# The slaves have
27# - Ubuntu1604 as the base distro
28# - nested virtualization
29# - internet access
30# - passwordless sudo
31# - 16 CPUs/32GB RAM/200 GB Disk
32# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
33# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
34#
35# The slaves should not have a cloud infra scenario deployed on them.
36#--------------------------------------------------------------------------------------
37
38- project:
39 name: 'cloud-infra-periodic-scenario'
40
41 project: 'infra/engine'
42
43 stream:
44 - 'master':
45 branch: '{stream}'
46 disabled: 'false'
47
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020048 distro:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020049 - ubuntu1804:
50 disabled: 'false'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020051 - centos7:
52 disabled: 'true'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020053
54 deploy-scenario:
55 - k8-calico-nofeature:
56 installer-type: kubespray
57 - k8-flannel-nofeature:
58 installer-type: kubespray
59 - k8-canal-nofeature:
60 installer-type: kubespray
61 - k8-cilium-nofeature:
62 installer-type: kubespray
63 - k8-weave-nofeature:
64 installer-type: kubespray
Fatih Degirmencib5d81972019-05-08 18:12:42 +020065 - k8-multus-nofeature:
66 installer-type: kubespray
Fatih Degirmencia4d3b392019-08-21 08:13:14 +000067 - os-nosdn-nofeature:
68 installer-type: kolla
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020069
70 type:
71 - baremetal:
72 slave-label: 'baremetal-deploy'
73 yardstick-dispatcher: 'influxdb'
74
75 phase:
76 - deploy:
Fatih Degirmencie820eb12019-07-27 20:18:14 +020077 build-timeout: 90
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020078 - functest:
79 build-timeout: 120
80 - yardstick:
81 build-timeout: 30
82 - promote:
83 build-timeout: 5
84
85 jobs:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020086 - '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
87 - 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020088
89- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020090 name: '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020091
92 project-type: multijob
93
94 disabled: '{obj:disabled}'
95
96 concurrent: true
97
98 parameters:
99 - project-parameters:
100 project: '{project}'
101 branch: '{branch}'
102 - nordix-gerrit-parameters
103 - label:
104 name: SLAVE_LABEL
105 default: '{slave-label}'
106 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
107 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200108 name: DISTRO
109 default: '{distro}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200110 description: 'Distribution to use for configuring target nodes (networking etc.)'
111 - string:
112 name: DEPLOY_TYPE
113 default: '{type}'
114 description: 'Type of the deployment'
115 - string:
116 name: USE_PREBUILT_DEPLOYMENT_IMAGE
117 default: 'true'
118 description: 'Use prebuilt deployment image while running as part of CI/CD'
119 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200120 name: INSTALLER_TYPE
121 default: '{installer-type}'
122 description: 'Installer to use for deploying the scenario'
123 - string:
124 name: DEPLOY_SCENARIO
125 default: '{deploy-scenario}'
126 description: 'Scenario to deploy and test'
127 - string:
128 name: TEST_SUITE
129 default: 'smoke'
130 description: 'Test suite to run'
131 - string:
132 name: YARDSTICK_DISPATCHER
133 default: '{yardstick-dispatcher}'
134 description: 'Dispatcher to use for Yardstick reporting'
135 - string:
136 name: CLEANUP
137 default: 'true'
138 description: 'Cleanup leftovers of the previous run'
139
140 properties:
141 - logrotate
142 - build-blocker:
143 use-build-blocker: true
144 blocking-jobs:
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200145 - 'cloud-infra-periodic-engine-.*'
146 - 'k8-.*'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200147 block-level: 'NODE'
148 - throttle:
149 max-per-node: 1
150 max-total: 3
151 option: project
152
153 wrappers:
154 - build-timeout:
Fatih Degirmencie820eb12019-07-27 20:18:14 +0200155 timeout: 245
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200156 - fix-workspace-permissions
157
158 scm:
159 - git-scm:
160 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
161 branch: '{branch}'
162 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100163 wipe_workspace: true
164 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200165
166 triggers:
167 - timed: '@daily'
168
169 builders:
170 - description-setter:
171 description: $INSTALLER_TYPE
172 - multijob:
173 name: deploy
174 condition: SUCCESSFUL
175 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200176 - name: 'scenario-periodic-{distro}-deploy-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200177 current-parameters: true
178 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200179 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200180 DEPLOY_TYPE=$DEPLOY_TYPE
181 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200182 INSTALLER_TYPE=$INSTALLER_TYPE
183 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
184 CLEANUP=$CLEANUP
185 git-revision: true
186 node-parameters: true
187 kill-phase-on: FAILURE
188 abort-all-job: true
189 - multijob:
190 name: functest
Fatih Degirmencia94ea542019-05-08 22:00:36 +0200191 condition: SUCCESSFUL
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200192 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200193 - name: 'scenario-periodic-{distro}-functest-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200194 current-parameters: true
195 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200196 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200197 DEPLOY_TYPE=$DEPLOY_TYPE
198 INSTALLER_TYPE=$INSTALLER_TYPE
199 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
200 TEST_SUITE=$TEST_SUITE
201 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
202 CLEANUP=$CLEANUP
203 node-parameters: true
204 kill-phase-on: FAILURE
205 abort-all-job: true
206 - multijob:
207 name: yardstick
Fatih Degirmencia94ea542019-05-08 22:00:36 +0200208 condition: SUCCESSFUL
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200209 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200210 - name: 'scenario-periodic-{distro}-yardstick-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200211 current-parameters: true
212 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200213 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200214 DEPLOY_TYPE=$DEPLOY_TYPE
215 INSTALLER_TYPE=$INSTALLER_TYPE
216 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
217 TEST_SUITE=$TEST_SUITE
218 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
219 CLEANUP=$CLEANUP
220 node-parameters: true
221 kill-phase-on: FAILURE
222 abort-all-job: true
223 - multijob:
224 name: promote
Fatih Degirmencia94ea542019-05-08 22:00:36 +0200225 condition: SUCCESSFUL
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200226 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200227 - name: 'scenario-periodic-{distro}-promote-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200228 current-parameters: true
229 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200230 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200231 DEPLOY_TYPE=$DEPLOY_TYPE
232 INSTALLER_TYPE=$INSTALLER_TYPE
233 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
234 TEST_SUITE=$TEST_SUITE
235 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
236 CLEANUP=$CLEANUP
237 node-parameters: true
238 kill-phase-on: FAILURE
239 abort-all-job: true
240
241- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200242 name: 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200243
244 disabled: false
245
246 concurrent: true
247
248 properties:
249 - logrotate
250
251 parameters:
252 - string:
253 name: PROJECT
254 default: $GERRIT_PROJECT
255 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200256 name: DISTRO
257 default: 'ubuntu1804'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200258 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
259 - string:
260 name: DEPLOY_TYPE
261 default: 'virtual'
262 description: 'Type of the deployment. Overriden by upstream job.'
263 - string:
264 name: USE_PREBUILT_DEPLOYMENT_IMAGE
265 default: 'false'
266 description: 'Use prebuilt deployment image while running as part of CI/CD'
267 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200268 name: ENGINE_ANSIBLE_PARAMS
269 default: ' -v '
270 description: 'Extra paramters that can be added when run the play books.'
271 - string:
272 name: DEPLOY_SCENARIO
273 default: 'k8-calico-nofeature'
274 description: 'Scenario to deploy and test'
275 - string:
276 name: INSTALLER_TYPE
277 default: 'kubespray'
278 description: 'Installer to use for deploying the scenario'
279 - string:
280 name: TEST_FW
281 default: '{phase}'
282 description: 'Test framework to use'
283 - string:
284 name: TEST_SUITE
285 default: 'smoke'
286 description: 'Test suite to run'
287 - string:
288 name: TEST_REPO_URL
289 default: 'https://gerrit.nordix.org/infra/test.git'
290 description: 'URL to Nordix Cloud Infra test repository'
291 - string:
292 name: YARDSTICK_DISPATCHER
293 default: 'file'
294 description: 'Dispatcher to use for Yardstick reporting'
295 - string:
296 name: CLEANUP
297 default: 'false'
298
299 wrappers:
300 - build-timeout:
301 timeout: '{build-timeout}'
302 - fix-workspace-permissions
303
304 scm:
305 - git-scm:
306 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
307 branch: '{branch}'
308 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100309 wipe_workspace: true
310 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200311
312 builders:
313 - description-setter:
314 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
315 - 'scenario-{phase}-macro'
316
317# vim: set ts=2 sw=2 expandtab: