blob: 6d00ae2f9b3f059c42062471579f12411f05b597 [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:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000039 name: 'cloud-infra-periodic-openstack'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020040
41 project: 'infra/engine'
42
43 stream:
44 - 'master':
Fatih Degirmencie67db6e2020-01-13 07:52:09 +000045 disabled: 'true'
46 engine-branch: 'master'
47 openstack-branch: '{stream}'
48 - 'train':
49 disabled: 'true'
50 engine-branch: 'master'
51 openstack-branch: '{stream}'
52 - 'stein':
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020053 disabled: 'false'
Fatih Degirmencie67db6e2020-01-13 07:52:09 +000054 engine-branch: 'master'
55 openstack-branch: '{stream}'
56 - 'rocky':
57 disabled: 'true'
58 engine-branch: 'master'
59 openstack-branch: '{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020060
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020061 distro:
Fatih Degirmenci12682a32020-01-14 07:54:10 +010062 - ubuntu1804
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020063
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000064 deploy-scenario:
65 - os-nosdn-nofeature
66
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020067 type:
68 - baremetal:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000069 pod-name: est-baremetal
Fatih Degirmenci12682a32020-01-14 07:54:10 +010070 slave-label: baremetal-deploy
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000071 provisioner-type: bifrost
72 installer-type: kolla
Fatih Degirmenci12682a32020-01-14 07:54:10 +010073 test-suite: smoke
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020074 yardstick-dispatcher: 'influxdb'
Fatih Degirmencid16d90a2020-01-14 08:10:08 +010075 ci-loop: daily
Fatih Degirmenci12682a32020-01-14 07:54:10 +010076 trigger-on: '@daily'
77 - virtual:
78 pod-name: est-virtual
79 slave-label: vpod
80 provisioner-type: bifrost
81 installer-type: kolla
82 test-suite: healthcheck
83 yardstick-dispatcher: 'influxdb'
Fatih Degirmencid16d90a2020-01-14 08:10:08 +010084 ci-loop: periodic
Fatih Degirmenci12682a32020-01-14 07:54:10 +010085 trigger-on: '0 */8 * * *'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020086
87 phase:
88 - deploy:
Fatih Degirmencie820eb12019-07-27 20:18:14 +020089 build-timeout: 90
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020090 - functest:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +000091 build-timeout: 240
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020092 - yardstick:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +000093 build-timeout: 120
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020094 - promote:
95 build-timeout: 5
96
97 jobs:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000098 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
99 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200100
101- job-template:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000102 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200103
104 project-type: multijob
105
106 disabled: '{obj:disabled}'
107
108 concurrent: true
109
110 parameters:
111 - project-parameters:
112 project: '{project}'
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000113 branch: '{engine-branch}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200114 - nordix-gerrit-parameters
115 - label:
116 name: SLAVE_LABEL
117 default: '{slave-label}'
118 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
119 - string:
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100120 name: CI_LOOP
121 default: '{ci-loop}'
122 description: 'Type of the deployment'
123 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200124 name: DISTRO
125 default: '{distro}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200126 description: 'Distribution to use for configuring target nodes (networking etc.)'
127 - string:
128 name: DEPLOY_TYPE
129 default: '{type}'
130 description: 'Type of the deployment'
131 - string:
132 name: USE_PREBUILT_DEPLOYMENT_IMAGE
133 default: 'true'
134 description: 'Use prebuilt deployment image while running as part of CI/CD'
135 - string:
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000136 name: OPENSTACK_VERSION
137 default: '{openstack-branch}'
138 description: 'OpenStack Version to deploy and test'
139 - string:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000140 name: PROVISIONER_TYPE
141 default: '{provisioner-type}'
142 description: 'Provisioner to use for provisioning nodes'
143 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200144 name: INSTALLER_TYPE
145 default: '{installer-type}'
146 description: 'Installer to use for deploying the scenario'
147 - string:
148 name: DEPLOY_SCENARIO
149 default: '{deploy-scenario}'
150 description: 'Scenario to deploy and test'
151 - string:
152 name: TEST_SUITE
Fatih Degirmenci12682a32020-01-14 07:54:10 +0100153 default: '{test-suite}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200154 description: 'Test suite to run'
155 - string:
156 name: YARDSTICK_DISPATCHER
157 default: '{yardstick-dispatcher}'
158 description: 'Dispatcher to use for Yardstick reporting'
159 - string:
160 name: CLEANUP
161 default: 'true'
162 description: 'Cleanup leftovers of the previous run'
163
164 properties:
165 - logrotate
166 - build-blocker:
167 use-build-blocker: true
168 blocking-jobs:
Fatih Degirmencifc0bd712020-01-21 12:27:10 +0100169 - 'cloud-infra-verify-engine-.*'
170 - 'cloud-infra-verify-scenario-.*'
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200171 - 'cloud-infra-periodic-engine-.*'
Fatih Degirmencifc0bd712020-01-21 12:27:10 +0100172 - 'onap-.*'
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200173 - 'k8-.*'
Fatih Degirmenci57712e22019-08-22 17:26:56 +0000174 - 'os-.*'
Fatih Degirmencifc0bd712020-01-21 12:27:10 +0100175 - 'nolabs-.*'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200176 block-level: 'NODE'
177 - throttle:
178 max-per-node: 1
179 max-total: 3
180 option: project
181
182 wrappers:
183 - build-timeout:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +0000184 timeout: 455
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200185 - fix-workspace-permissions
186
187 scm:
188 - git-scm:
189 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000190 branch: '{engine-branch}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200191 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100192 wipe_workspace: true
193 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200194
195 triggers:
Fatih Degirmenci12682a32020-01-14 07:54:10 +0100196 - timed: '{trigger-on}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200197
198 builders:
199 - description-setter:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000200 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200201 - multijob:
202 name: deploy
203 condition: SUCCESSFUL
204 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000205 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200206 current-parameters: true
207 predefined-parameters: |
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100208 CI_LOOP=$CI_LOOP
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200209 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200210 DEPLOY_TYPE=$DEPLOY_TYPE
211 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000212 OPENSTACK_VERSION=$OPENSTACK_VERSION
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000213 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200214 INSTALLER_TYPE=$INSTALLER_TYPE
215 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
216 CLEANUP=$CLEANUP
217 git-revision: true
218 node-parameters: true
219 kill-phase-on: FAILURE
220 abort-all-job: true
221 - multijob:
222 name: functest
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000223 condition: ALWAYS
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200224 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000225 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200226 current-parameters: true
227 predefined-parameters: |
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100228 CI_LOOP=$CI_LOOP
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200229 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200230 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000231 OPENSTACK_VERSION=$OPENSTACK_VERSION
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000232 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200233 INSTALLER_TYPE=$INSTALLER_TYPE
234 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
235 TEST_SUITE=$TEST_SUITE
236 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
237 CLEANUP=$CLEANUP
238 node-parameters: true
Fatih Degirmencif23c5f82019-08-27 17:41:40 +0000239 kill-phase-on: NEVER
240 abort-all-job: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200241 - multijob:
242 name: yardstick
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000243 condition: ALWAYS
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200244 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000245 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200246 current-parameters: true
247 predefined-parameters: |
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100248 CI_LOOP=$CI_LOOP
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200249 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200250 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000251 OPENSTACK_VERSION=$OPENSTACK_VERSION
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000252 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200253 INSTALLER_TYPE=$INSTALLER_TYPE
254 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
255 TEST_SUITE=$TEST_SUITE
256 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
257 CLEANUP=$CLEANUP
258 node-parameters: true
Fatih Degirmencif23c5f82019-08-27 17:41:40 +0000259 kill-phase-on: NEVER
260 abort-all-job: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200261 - multijob:
262 name: promote
Fatih Degirmencia94ea542019-05-08 22:00:36 +0200263 condition: SUCCESSFUL
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200264 projects:
Fatih Degirmenci65ea6492019-08-28 16:27:40 +0000265 - name: 'openstack-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200266 current-parameters: true
267 predefined-parameters: |
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100268 CI_LOOP=$CI_LOOP
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200269 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200270 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000271 OPENSTACK_VERSION=$OPENSTACK_VERSION
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000272 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200273 INSTALLER_TYPE=$INSTALLER_TYPE
274 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
275 TEST_SUITE=$TEST_SUITE
276 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
277 CLEANUP=$CLEANUP
278 node-parameters: true
279 kill-phase-on: FAILURE
280 abort-all-job: true
281
282- job-template:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000283 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200284
285 disabled: false
286
287 concurrent: true
288
289 properties:
290 - logrotate
291
292 parameters:
293 - string:
294 name: PROJECT
295 default: $GERRIT_PROJECT
296 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200297 name: DISTRO
298 default: 'ubuntu1804'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200299 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
300 - string:
Fatih Degirmencid16d90a2020-01-14 08:10:08 +0100301 name: CI_LOOP
302 default: '{ci-loop}'
303 description: 'Type of the deployment'
304 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200305 name: DEPLOY_TYPE
306 default: 'virtual'
307 description: 'Type of the deployment. Overriden by upstream job.'
308 - string:
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000309 name: OPENSTACK_VERSION
310 default: 'stein'
311 description: 'OpenStack Version to deploy and test'
312 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200313 name: USE_PREBUILT_DEPLOYMENT_IMAGE
314 default: 'false'
315 description: 'Use prebuilt deployment image while running as part of CI/CD'
316 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200317 name: ENGINE_ANSIBLE_PARAMS
318 default: ' -v '
319 description: 'Extra paramters that can be added when run the play books.'
320 - string:
321 name: DEPLOY_SCENARIO
322 default: 'k8-calico-nofeature'
323 description: 'Scenario to deploy and test'
324 - string:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000325 name: PROVISIONER_TYPE
326 default: 'bifrost'
327 description: 'Provisioner to use for provisioning nodes'
328 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200329 name: INSTALLER_TYPE
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000330 default: 'kolla'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200331 description: 'Installer to use for deploying the scenario'
332 - string:
333 name: TEST_FW
334 default: '{phase}'
335 description: 'Test framework to use'
336 - string:
337 name: TEST_SUITE
338 default: 'smoke'
339 description: 'Test suite to run'
340 - string:
341 name: TEST_REPO_URL
342 default: 'https://gerrit.nordix.org/infra/test.git'
343 description: 'URL to Nordix Cloud Infra test repository'
344 - string:
345 name: YARDSTICK_DISPATCHER
346 default: 'file'
347 description: 'Dispatcher to use for Yardstick reporting'
348 - string:
349 name: CLEANUP
350 default: 'false'
351
352 wrappers:
353 - build-timeout:
354 timeout: '{build-timeout}'
355 - fix-workspace-permissions
356
357 scm:
358 - git-scm:
359 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
Fatih Degirmencie67db6e2020-01-13 07:52:09 +0000360 branch: '{engine-branch}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200361 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100362 wipe_workspace: true
363 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200364
365 builders:
366 - description-setter:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000367 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200368 - 'scenario-{phase}-macro'
369
370# vim: set ts=2 sw=2 expandtab: