blob: 6b8822a9c57f5ddd57f1d9652626a41bebccfe5c [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':
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
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000054 deploy-scenario:
55 - os-nosdn-nofeature
56
Fatih Degirmencic0336d52019-08-26 08:04:59 +000057 ci-loop:
58 - daily
59
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020060 type:
61 - baremetal:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000062 pod-name: est-baremetal
63 provisioner-type: bifrost
64 installer-type: kolla
65 slave-label: baremetal-deploy
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020066 yardstick-dispatcher: 'influxdb'
67
68 phase:
69 - deploy:
Fatih Degirmencie820eb12019-07-27 20:18:14 +020070 build-timeout: 90
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020071 - functest:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +000072 build-timeout: 240
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020073 - yardstick:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +000074 build-timeout: 120
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020075 - promote:
76 build-timeout: 5
77
78 jobs:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000079 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
80 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020081
82- job-template:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +000083 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020084
85 project-type: multijob
86
87 disabled: '{obj:disabled}'
88
89 concurrent: true
90
91 parameters:
92 - project-parameters:
93 project: '{project}'
94 branch: '{branch}'
95 - nordix-gerrit-parameters
96 - label:
97 name: SLAVE_LABEL
98 default: '{slave-label}'
99 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
100 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200101 name: DISTRO
102 default: '{distro}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200103 description: 'Distribution to use for configuring target nodes (networking etc.)'
104 - string:
105 name: DEPLOY_TYPE
106 default: '{type}'
107 description: 'Type of the deployment'
108 - string:
109 name: USE_PREBUILT_DEPLOYMENT_IMAGE
110 default: 'true'
111 description: 'Use prebuilt deployment image while running as part of CI/CD'
112 - string:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000113 name: PROVISIONER_TYPE
114 default: '{provisioner-type}'
115 description: 'Provisioner to use for provisioning nodes'
116 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200117 name: INSTALLER_TYPE
118 default: '{installer-type}'
119 description: 'Installer to use for deploying the scenario'
120 - string:
121 name: DEPLOY_SCENARIO
122 default: '{deploy-scenario}'
123 description: 'Scenario to deploy and test'
124 - string:
125 name: TEST_SUITE
126 default: 'smoke'
127 description: 'Test suite to run'
128 - string:
129 name: YARDSTICK_DISPATCHER
130 default: '{yardstick-dispatcher}'
131 description: 'Dispatcher to use for Yardstick reporting'
132 - string:
133 name: CLEANUP
134 default: 'true'
135 description: 'Cleanup leftovers of the previous run'
136
137 properties:
138 - logrotate
139 - build-blocker:
140 use-build-blocker: true
141 blocking-jobs:
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200142 - 'cloud-infra-periodic-engine-.*'
143 - 'k8-.*'
Fatih Degirmenci57712e22019-08-22 17:26:56 +0000144 - 'os-.*'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200145 block-level: 'NODE'
146 - throttle:
147 max-per-node: 1
148 max-total: 3
149 option: project
150
151 wrappers:
152 - build-timeout:
Fatih Degirmenci49f4b272019-08-27 09:30:36 +0000153 timeout: 455
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200154 - fix-workspace-permissions
155
156 scm:
157 - git-scm:
158 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
159 branch: '{branch}'
160 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100161 wipe_workspace: true
162 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200163
164 triggers:
165 - timed: '@daily'
166
167 builders:
168 - description-setter:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000169 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200170 - multijob:
171 name: deploy
172 condition: SUCCESSFUL
173 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000174 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200175 current-parameters: true
176 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200177 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200178 DEPLOY_TYPE=$DEPLOY_TYPE
179 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000180 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200181 INSTALLER_TYPE=$INSTALLER_TYPE
182 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
183 CLEANUP=$CLEANUP
184 git-revision: true
185 node-parameters: true
186 kill-phase-on: FAILURE
187 abort-all-job: true
188 - multijob:
189 name: functest
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000190 condition: ALWAYS
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200191 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000192 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200193 current-parameters: true
194 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200195 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200196 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000197 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200198 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
Fatih Degirmencif23c5f82019-08-27 17:41:40 +0000204 kill-phase-on: NEVER
205 abort-all-job: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200206 - multijob:
207 name: yardstick
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000208 condition: ALWAYS
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200209 projects:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000210 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{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
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000215 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200216 INSTALLER_TYPE=$INSTALLER_TYPE
217 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
218 TEST_SUITE=$TEST_SUITE
219 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
220 CLEANUP=$CLEANUP
221 node-parameters: true
Fatih Degirmencif23c5f82019-08-27 17:41:40 +0000222 kill-phase-on: NEVER
223 abort-all-job: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200224 - multijob:
225 name: promote
Fatih Degirmencia94ea542019-05-08 22:00:36 +0200226 condition: SUCCESSFUL
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200227 projects:
Fatih Degirmenci65ea6492019-08-28 16:27:40 +0000228 - name: 'openstack-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200229 current-parameters: true
230 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200231 DISTRO=$DISTRO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200232 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000233 PROVISIONER_TYPE=$PROVISIONER_TYPE
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200234 INSTALLER_TYPE=$INSTALLER_TYPE
235 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
236 TEST_SUITE=$TEST_SUITE
237 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
238 CLEANUP=$CLEANUP
239 node-parameters: true
240 kill-phase-on: FAILURE
241 abort-all-job: true
242
243- job-template:
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000244 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200245
246 disabled: false
247
248 concurrent: true
249
250 properties:
251 - logrotate
252
253 parameters:
254 - string:
255 name: PROJECT
256 default: $GERRIT_PROJECT
257 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200258 name: DISTRO
259 default: 'ubuntu1804'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200260 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
261 - string:
262 name: DEPLOY_TYPE
263 default: 'virtual'
264 description: 'Type of the deployment. Overriden by upstream job.'
265 - string:
266 name: USE_PREBUILT_DEPLOYMENT_IMAGE
267 default: 'false'
268 description: 'Use prebuilt deployment image while running as part of CI/CD'
269 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200270 name: ENGINE_ANSIBLE_PARAMS
271 default: ' -v '
272 description: 'Extra paramters that can be added when run the play books.'
273 - string:
274 name: DEPLOY_SCENARIO
275 default: 'k8-calico-nofeature'
276 description: 'Scenario to deploy and test'
277 - string:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000278 name: PROVISIONER_TYPE
279 default: 'bifrost'
280 description: 'Provisioner to use for provisioning nodes'
281 - string:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200282 name: INSTALLER_TYPE
Fatih Degirmencibb7e4362019-08-28 08:40:55 +0000283 default: 'kolla'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200284 description: 'Installer to use for deploying the scenario'
285 - string:
286 name: TEST_FW
287 default: '{phase}'
288 description: 'Test framework to use'
289 - string:
290 name: TEST_SUITE
291 default: 'smoke'
292 description: 'Test suite to run'
293 - string:
294 name: TEST_REPO_URL
295 default: 'https://gerrit.nordix.org/infra/test.git'
296 description: 'URL to Nordix Cloud Infra test repository'
297 - string:
298 name: YARDSTICK_DISPATCHER
299 default: 'file'
300 description: 'Dispatcher to use for Yardstick reporting'
301 - string:
302 name: CLEANUP
303 default: 'false'
304
305 wrappers:
306 - build-timeout:
307 timeout: '{build-timeout}'
308 - fix-workspace-permissions
309
310 scm:
311 - git-scm:
312 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
313 branch: '{branch}'
314 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100315 wipe_workspace: true
316 clean_before: false
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200317
318 builders:
319 - description-setter:
Fatih Degirmenci322f62a2019-08-26 08:09:21 +0000320 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200321 - 'scenario-{phase}-macro'
322
323# vim: set ts=2 sw=2 expandtab: