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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
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.
25 # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
27 # - Ubuntu1604 as the base distro
28 # - nested virtualization
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
35 # The slaves should not have a cloud infra scenario deployed on them.
36 #--------------------------------------------------------------------------------------
39 name: 'cloud-infra-periodic-openstack'
41 project: 'infra/engine'
46 engine-branch: 'master'
47 openstack-branch: '{stream}'
50 engine-branch: 'master'
51 openstack-branch: '{stream}'
54 engine-branch: 'master'
55 openstack-branch: '{stream}'
58 engine-branch: 'master'
59 openstack-branch: '{stream}'
72 pod-name: est-baremetal
73 slave-label: baremetal-deploy
74 provisioner-type: bifrost
77 yardstick-dispatcher: 'influxdb'
82 provisioner-type: bifrost
84 test-suite: healthcheck
85 yardstick-dispatcher: 'influxdb'
86 trigger-on: '0 */8 * * *'
99 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
100 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
103 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
105 project-type: multijob
107 disabled: '{obj:disabled}'
112 - project-parameters:
114 branch: '{engine-branch}'
115 - nordix-gerrit-parameters
118 default: '{slave-label}'
119 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
123 description: 'Distribution to use for configuring target nodes (networking etc.)'
127 description: 'Type of the deployment'
129 name: USE_PREBUILT_DEPLOYMENT_IMAGE
131 description: 'Use prebuilt deployment image while running as part of CI/CD'
133 name: OPENSTACK_VERSION
134 default: '{openstack-branch}'
135 description: 'OpenStack Version to deploy and test'
137 name: PROVISIONER_TYPE
138 default: '{provisioner-type}'
139 description: 'Provisioner to use for provisioning nodes'
142 default: '{installer-type}'
143 description: 'Installer to use for deploying the scenario'
145 name: DEPLOY_SCENARIO
146 default: '{deploy-scenario}'
147 description: 'Scenario to deploy and test'
150 default: '{test-suite}'
151 description: 'Test suite to run'
153 name: YARDSTICK_DISPATCHER
154 default: '{yardstick-dispatcher}'
155 description: 'Dispatcher to use for Yardstick reporting'
159 description: 'Cleanup leftovers of the previous run'
164 use-build-blocker: true
166 - 'cloud-infra-periodic-engine-.*'
178 - fix-workspace-permissions
182 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
183 branch: '{engine-branch}'
189 - timed: '{trigger-on}'
192 - description-setter:
193 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
196 condition: SUCCESSFUL
198 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
199 current-parameters: true
200 predefined-parameters: |
202 DEPLOY_TYPE=$DEPLOY_TYPE
203 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
204 OPENSTACK_VERSION=$OPENSTACK_VERSION
205 PROVISIONER_TYPE=$PROVISIONER_TYPE
206 INSTALLER_TYPE=$INSTALLER_TYPE
207 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
210 node-parameters: true
211 kill-phase-on: FAILURE
217 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
218 current-parameters: true
219 predefined-parameters: |
221 DEPLOY_TYPE=$DEPLOY_TYPE
222 OPENSTACK_VERSION=$OPENSTACK_VERSION
223 PROVISIONER_TYPE=$PROVISIONER_TYPE
224 INSTALLER_TYPE=$INSTALLER_TYPE
225 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
226 TEST_SUITE=$TEST_SUITE
227 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
229 node-parameters: true
236 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
237 current-parameters: true
238 predefined-parameters: |
240 DEPLOY_TYPE=$DEPLOY_TYPE
241 OPENSTACK_VERSION=$OPENSTACK_VERSION
242 PROVISIONER_TYPE=$PROVISIONER_TYPE
243 INSTALLER_TYPE=$INSTALLER_TYPE
244 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
245 TEST_SUITE=$TEST_SUITE
246 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
248 node-parameters: true
253 condition: SUCCESSFUL
255 - name: 'openstack-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
256 current-parameters: true
257 predefined-parameters: |
259 DEPLOY_TYPE=$DEPLOY_TYPE
260 OPENSTACK_VERSION=$OPENSTACK_VERSION
261 PROVISIONER_TYPE=$PROVISIONER_TYPE
262 INSTALLER_TYPE=$INSTALLER_TYPE
263 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
264 TEST_SUITE=$TEST_SUITE
265 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
267 node-parameters: true
268 kill-phase-on: FAILURE
272 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
284 default: $GERRIT_PROJECT
287 default: 'ubuntu1804'
288 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
292 description: 'Type of the deployment. Overriden by upstream job.'
294 name: OPENSTACK_VERSION
296 description: 'OpenStack Version to deploy and test'
298 name: USE_PREBUILT_DEPLOYMENT_IMAGE
300 description: 'Use prebuilt deployment image while running as part of CI/CD'
302 name: ENGINE_ANSIBLE_PARAMS
304 description: 'Extra paramters that can be added when run the play books.'
306 name: DEPLOY_SCENARIO
307 default: 'k8-calico-nofeature'
308 description: 'Scenario to deploy and test'
310 name: PROVISIONER_TYPE
312 description: 'Provisioner to use for provisioning nodes'
316 description: 'Installer to use for deploying the scenario'
320 description: 'Test framework to use'
324 description: 'Test suite to run'
327 default: 'https://gerrit.nordix.org/infra/test.git'
328 description: 'URL to Nordix Cloud Infra test repository'
330 name: YARDSTICK_DISPATCHER
332 description: 'Dispatcher to use for Yardstick reporting'
339 timeout: '{build-timeout}'
340 - fix-workspace-permissions
344 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
345 branch: '{engine-branch}'
351 - description-setter:
352 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
353 - 'scenario-{phase}-macro'
355 # vim: set ts=2 sw=2 expandtab: