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}'
69 pod-name: est-baremetal
70 slave-label: baremetal-deploy
71 provisioner-type: bifrost
74 yardstick-dispatcher: 'influxdb'
80 provisioner-type: bifrost
82 test-suite: healthcheck
83 yardstick-dispatcher: 'influxdb'
85 trigger-on: '0 */8 * * *'
98 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
99 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
102 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
104 project-type: multijob
106 disabled: '{obj:disabled}'
111 - project-parameters:
113 branch: '{engine-branch}'
114 - nordix-gerrit-parameters
117 default: '{slave-label}'
118 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
122 description: 'Type of the deployment'
126 description: 'Distribution to use for configuring target nodes (networking etc.)'
130 description: 'Type of the deployment'
132 name: USE_PREBUILT_DEPLOYMENT_IMAGE
134 description: 'Use prebuilt deployment image while running as part of CI/CD'
136 name: OPENSTACK_VERSION
137 default: '{openstack-branch}'
138 description: 'OpenStack Version to deploy and test'
140 name: PROVISIONER_TYPE
141 default: '{provisioner-type}'
142 description: 'Provisioner to use for provisioning nodes'
145 default: '{installer-type}'
146 description: 'Installer to use for deploying the scenario'
148 name: DEPLOY_SCENARIO
149 default: '{deploy-scenario}'
150 description: 'Scenario to deploy and test'
153 default: '{test-suite}'
154 description: 'Test suite to run'
156 name: YARDSTICK_DISPATCHER
157 default: '{yardstick-dispatcher}'
158 description: 'Dispatcher to use for Yardstick reporting'
162 description: 'Cleanup leftovers of the previous run'
167 use-build-blocker: true
169 - 'cloud-infra-verify-engine-.*'
170 - 'cloud-infra-verify-scenario-.*'
171 - 'cloud-infra-periodic-engine-.*'
185 - fix-workspace-permissions
189 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
190 branch: '{engine-branch}'
196 - timed: '{trigger-on}'
199 - description-setter:
200 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
203 condition: SUCCESSFUL
205 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
206 current-parameters: true
207 predefined-parameters: |
210 DEPLOY_TYPE=$DEPLOY_TYPE
211 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
212 OPENSTACK_VERSION=$OPENSTACK_VERSION
213 PROVISIONER_TYPE=$PROVISIONER_TYPE
214 INSTALLER_TYPE=$INSTALLER_TYPE
215 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
218 node-parameters: true
219 kill-phase-on: FAILURE
225 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
226 current-parameters: true
227 predefined-parameters: |
230 DEPLOY_TYPE=$DEPLOY_TYPE
231 OPENSTACK_VERSION=$OPENSTACK_VERSION
232 PROVISIONER_TYPE=$PROVISIONER_TYPE
233 INSTALLER_TYPE=$INSTALLER_TYPE
234 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
235 TEST_SUITE=$TEST_SUITE
236 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
238 node-parameters: true
245 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
246 current-parameters: true
247 predefined-parameters: |
250 DEPLOY_TYPE=$DEPLOY_TYPE
251 OPENSTACK_VERSION=$OPENSTACK_VERSION
252 PROVISIONER_TYPE=$PROVISIONER_TYPE
253 INSTALLER_TYPE=$INSTALLER_TYPE
254 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
255 TEST_SUITE=$TEST_SUITE
256 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
258 node-parameters: true
263 condition: SUCCESSFUL
265 - name: 'openstack-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
266 current-parameters: true
267 predefined-parameters: |
270 DEPLOY_TYPE=$DEPLOY_TYPE
271 OPENSTACK_VERSION=$OPENSTACK_VERSION
272 PROVISIONER_TYPE=$PROVISIONER_TYPE
273 INSTALLER_TYPE=$INSTALLER_TYPE
274 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
275 TEST_SUITE=$TEST_SUITE
276 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
278 node-parameters: true
279 kill-phase-on: FAILURE
283 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
295 default: $GERRIT_PROJECT
298 default: 'ubuntu1804'
299 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
303 description: 'Type of the deployment'
307 description: 'Type of the deployment. Overriden by upstream job.'
309 name: OPENSTACK_VERSION
311 description: 'OpenStack Version to deploy and test'
313 name: USE_PREBUILT_DEPLOYMENT_IMAGE
315 description: 'Use prebuilt deployment image while running as part of CI/CD'
317 name: ENGINE_ANSIBLE_PARAMS
319 description: 'Extra paramters that can be added when run the play books.'
321 name: DEPLOY_SCENARIO
322 default: 'k8-calico-nofeature'
323 description: 'Scenario to deploy and test'
325 name: PROVISIONER_TYPE
327 description: 'Provisioner to use for provisioning nodes'
331 description: 'Installer to use for deploying the scenario'
335 description: 'Test framework to use'
339 description: 'Test suite to run'
342 default: 'https://gerrit.nordix.org/infra/test.git'
343 description: 'URL to Nordix Cloud Infra test repository'
345 name: YARDSTICK_DISPATCHER
347 description: 'Dispatcher to use for Yardstick reporting'
354 timeout: '{build-timeout}'
355 - fix-workspace-permissions
359 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
360 branch: '{engine-branch}'
366 - description-setter:
367 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
368 - 'scenario-{phase}-macro'
370 # vim: set ts=2 sw=2 expandtab: