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}'
73 pod-name: est-baremetal
74 provisioner-type: bifrost
76 slave-label: baremetal-deploy
77 yardstick-dispatcher: 'influxdb'
90 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
91 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
94 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
96 project-type: multijob
98 disabled: '{obj:disabled}'
103 - project-parameters:
105 branch: '{engine-branch}'
106 - nordix-gerrit-parameters
109 default: '{slave-label}'
110 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
114 description: 'Distribution to use for configuring target nodes (networking etc.)'
118 description: 'Type of the deployment'
120 name: USE_PREBUILT_DEPLOYMENT_IMAGE
122 description: 'Use prebuilt deployment image while running as part of CI/CD'
124 name: OPENSTACK_VERSION
125 default: '{openstack-branch}'
126 description: 'OpenStack Version to deploy and test'
128 name: PROVISIONER_TYPE
129 default: '{provisioner-type}'
130 description: 'Provisioner to use for provisioning nodes'
133 default: '{installer-type}'
134 description: 'Installer to use for deploying the scenario'
136 name: DEPLOY_SCENARIO
137 default: '{deploy-scenario}'
138 description: 'Scenario to deploy and test'
142 description: 'Test suite to run'
144 name: YARDSTICK_DISPATCHER
145 default: '{yardstick-dispatcher}'
146 description: 'Dispatcher to use for Yardstick reporting'
150 description: 'Cleanup leftovers of the previous run'
155 use-build-blocker: true
157 - 'cloud-infra-periodic-engine-.*'
169 - fix-workspace-permissions
173 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
174 branch: '{engine-branch}'
183 - description-setter:
184 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
187 condition: SUCCESSFUL
189 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
190 current-parameters: true
191 predefined-parameters: |
193 DEPLOY_TYPE=$DEPLOY_TYPE
194 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
195 OPENSTACK_VERSION=$OPENSTACK_VERSION
196 PROVISIONER_TYPE=$PROVISIONER_TYPE
197 INSTALLER_TYPE=$INSTALLER_TYPE
198 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
201 node-parameters: true
202 kill-phase-on: FAILURE
208 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
209 current-parameters: true
210 predefined-parameters: |
212 DEPLOY_TYPE=$DEPLOY_TYPE
213 OPENSTACK_VERSION=$OPENSTACK_VERSION
214 PROVISIONER_TYPE=$PROVISIONER_TYPE
215 INSTALLER_TYPE=$INSTALLER_TYPE
216 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
217 TEST_SUITE=$TEST_SUITE
218 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
220 node-parameters: true
227 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
228 current-parameters: true
229 predefined-parameters: |
231 DEPLOY_TYPE=$DEPLOY_TYPE
232 OPENSTACK_VERSION=$OPENSTACK_VERSION
233 PROVISIONER_TYPE=$PROVISIONER_TYPE
234 INSTALLER_TYPE=$INSTALLER_TYPE
235 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
236 TEST_SUITE=$TEST_SUITE
237 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
239 node-parameters: true
244 condition: SUCCESSFUL
246 - name: 'openstack-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
247 current-parameters: true
248 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
259 kill-phase-on: FAILURE
263 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
275 default: $GERRIT_PROJECT
278 default: 'ubuntu1804'
279 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
283 description: 'Type of the deployment. Overriden by upstream job.'
285 name: OPENSTACK_VERSION
287 description: 'OpenStack Version to deploy and test'
289 name: USE_PREBUILT_DEPLOYMENT_IMAGE
291 description: 'Use prebuilt deployment image while running as part of CI/CD'
293 name: ENGINE_ANSIBLE_PARAMS
295 description: 'Extra paramters that can be added when run the play books.'
297 name: DEPLOY_SCENARIO
298 default: 'k8-calico-nofeature'
299 description: 'Scenario to deploy and test'
301 name: PROVISIONER_TYPE
303 description: 'Provisioner to use for provisioning nodes'
307 description: 'Installer to use for deploying the scenario'
311 description: 'Test framework to use'
315 description: 'Test suite to run'
318 default: 'https://gerrit.nordix.org/infra/test.git'
319 description: 'URL to Nordix Cloud Infra test repository'
321 name: YARDSTICK_DISPATCHER
323 description: 'Dispatcher to use for Yardstick reporting'
330 timeout: '{build-timeout}'
331 - fix-workspace-permissions
335 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
336 branch: '{engine-branch}'
342 - description-setter:
343 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
344 - 'scenario-{phase}-macro'
346 # vim: set ts=2 sw=2 expandtab: