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'
62 pod-name: est-baremetal
63 provisioner-type: bifrost
65 slave-label: baremetal-deploy
66 yardstick-dispatcher: 'influxdb'
79 - '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
80 - 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
83 name: '{deploy-scenario}-{distro}-kolla-{type}-{ci-loop}-{stream}'
85 project-type: multijob
87 disabled: '{obj:disabled}'
95 - nordix-gerrit-parameters
98 default: '{slave-label}'
99 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
103 description: 'Distribution to use for configuring target nodes (networking etc.)'
107 description: 'Type of the deployment'
109 name: USE_PREBUILT_DEPLOYMENT_IMAGE
111 description: 'Use prebuilt deployment image while running as part of CI/CD'
113 name: PROVISIONER_TYPE
114 default: '{provisioner-type}'
115 description: 'Provisioner to use for provisioning nodes'
118 default: '{installer-type}'
119 description: 'Installer to use for deploying the scenario'
121 name: DEPLOY_SCENARIO
122 default: '{deploy-scenario}'
123 description: 'Scenario to deploy and test'
127 description: 'Test suite to run'
129 name: YARDSTICK_DISPATCHER
130 default: '{yardstick-dispatcher}'
131 description: 'Dispatcher to use for Yardstick reporting'
135 description: 'Cleanup leftovers of the previous run'
140 use-build-blocker: true
142 - 'cloud-infra-periodic-engine-.*'
154 - fix-workspace-permissions
158 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
168 - description-setter:
169 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
172 condition: SUCCESSFUL
174 - name: 'openstack-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
175 current-parameters: true
176 predefined-parameters: |
178 DEPLOY_TYPE=$DEPLOY_TYPE
179 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
180 PROVISIONER_TYPE=$PROVISIONER_TYPE
181 INSTALLER_TYPE=$INSTALLER_TYPE
182 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
185 node-parameters: true
186 kill-phase-on: FAILURE
192 - name: 'openstack-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
193 current-parameters: true
194 predefined-parameters: |
196 DEPLOY_TYPE=$DEPLOY_TYPE
197 PROVISIONER_TYPE=$PROVISIONER_TYPE
198 INSTALLER_TYPE=$INSTALLER_TYPE
199 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
200 TEST_SUITE=$TEST_SUITE
201 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
203 node-parameters: true
210 - name: 'openstack-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
211 current-parameters: true
212 predefined-parameters: |
214 DEPLOY_TYPE=$DEPLOY_TYPE
215 PROVISIONER_TYPE=$PROVISIONER_TYPE
216 INSTALLER_TYPE=$INSTALLER_TYPE
217 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
218 TEST_SUITE=$TEST_SUITE
219 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
221 node-parameters: true
226 condition: SUCCESSFUL
228 - name: 'scenario-{distro}-promote-{type}-{ci-loop}-{stream}'
229 current-parameters: true
230 predefined-parameters: |
232 DEPLOY_TYPE=$DEPLOY_TYPE
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
240 kill-phase-on: FAILURE
244 name: 'openstack-{phase}-{distro}-kolla-{type}-{ci-loop}-{stream}'
256 default: $GERRIT_PROJECT
259 default: 'ubuntu1804'
260 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
264 description: 'Type of the deployment. Overriden by upstream job.'
266 name: USE_PREBUILT_DEPLOYMENT_IMAGE
268 description: 'Use prebuilt deployment image while running as part of CI/CD'
270 name: ENGINE_ANSIBLE_PARAMS
272 description: 'Extra paramters that can be added when run the play books.'
274 name: DEPLOY_SCENARIO
275 default: 'k8-calico-nofeature'
276 description: 'Scenario to deploy and test'
278 name: PROVISIONER_TYPE
280 description: 'Provisioner to use for provisioning nodes'
284 description: 'Installer to use for deploying the scenario'
288 description: 'Test framework to use'
292 description: 'Test suite to run'
295 default: 'https://gerrit.nordix.org/infra/test.git'
296 description: 'URL to Nordix Cloud Infra test repository'
298 name: YARDSTICK_DISPATCHER
300 description: 'Dispatcher to use for Yardstick reporting'
307 timeout: '{build-timeout}'
308 - fix-workspace-permissions
312 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
319 - description-setter:
320 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
321 - 'scenario-{phase}-macro'
323 # vim: set ts=2 sw=2 expandtab: