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-scenario'
41 project: 'infra/engine'
55 - k8-calico-nofeature:
56 installer-type: kubespray
57 - k8-flannel-nofeature:
58 installer-type: kubespray
60 installer-type: kubespray
61 - k8-cilium-nofeature:
62 installer-type: kubespray
64 installer-type: kubespray
65 - k8-multus-nofeature:
66 installer-type: kubespray
72 slave-label: 'baremetal-deploy'
73 yardstick-dispatcher: 'influxdb'
86 - '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
87 - 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
90 name: '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
92 project-type: multijob
94 disabled: '{obj:disabled}'
102 - nordix-gerrit-parameters
105 default: '{slave-label}'
106 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
110 description: 'Distribution to use for configuring target nodes (networking etc.)'
114 description: 'Type of the deployment'
116 name: USE_PREBUILT_DEPLOYMENT_IMAGE
118 description: 'Use prebuilt deployment image while running as part of CI/CD'
121 default: '{installer-type}'
122 description: 'Installer to use for deploying the scenario'
124 name: DEPLOY_SCENARIO
125 default: '{deploy-scenario}'
126 description: 'Scenario to deploy and test'
130 description: 'Test suite to run'
132 name: YARDSTICK_DISPATCHER
133 default: '{yardstick-dispatcher}'
134 description: 'Dispatcher to use for Yardstick reporting'
138 description: 'Cleanup leftovers of the previous run'
143 use-build-blocker: true
145 - 'cloud-infra-periodic-engine-.*'
156 - fix-workspace-permissions
160 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
170 - description-setter:
171 description: $INSTALLER_TYPE
174 condition: SUCCESSFUL
176 - name: 'scenario-periodic-{distro}-deploy-{type}-{stream}'
177 current-parameters: true
178 predefined-parameters: |
180 DEPLOY_TYPE=$DEPLOY_TYPE
181 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
182 INSTALLER_TYPE=$INSTALLER_TYPE
183 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
186 node-parameters: true
187 kill-phase-on: FAILURE
191 condition: SUCCESSFUL
193 - name: 'scenario-periodic-{distro}-functest-{type}-{stream}'
194 current-parameters: true
195 predefined-parameters: |
197 DEPLOY_TYPE=$DEPLOY_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
204 kill-phase-on: FAILURE
208 condition: SUCCESSFUL
210 - name: 'scenario-periodic-{distro}-yardstick-{type}-{stream}'
211 current-parameters: true
212 predefined-parameters: |
214 DEPLOY_TYPE=$DEPLOY_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
221 kill-phase-on: FAILURE
225 condition: SUCCESSFUL
227 - name: 'scenario-periodic-{distro}-promote-{type}-{stream}'
228 current-parameters: true
229 predefined-parameters: |
231 DEPLOY_TYPE=$DEPLOY_TYPE
232 INSTALLER_TYPE=$INSTALLER_TYPE
233 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
234 TEST_SUITE=$TEST_SUITE
235 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
237 node-parameters: true
238 kill-phase-on: FAILURE
242 name: 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
254 default: $GERRIT_PROJECT
257 default: 'ubuntu1804'
258 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
262 description: 'Type of the deployment. Overriden by upstream job.'
264 name: USE_PREBUILT_DEPLOYMENT_IMAGE
266 description: 'Use prebuilt deployment image while running as part of CI/CD'
268 name: ENGINE_ANSIBLE_PARAMS
270 description: 'Extra paramters that can be added when run the play books.'
272 name: DEPLOY_SCENARIO
273 default: 'k8-calico-nofeature'
274 description: 'Scenario to deploy and test'
278 description: 'Installer to use for deploying the scenario'
282 description: 'Test framework to use'
286 description: 'Test suite to run'
289 default: 'https://gerrit.nordix.org/infra/test.git'
290 description: 'URL to Nordix Cloud Infra test repository'
292 name: YARDSTICK_DISPATCHER
294 description: 'Dispatcher to use for Yardstick reporting'
301 timeout: '{build-timeout}'
302 - fix-workspace-permissions
306 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
313 - description-setter:
314 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
315 - 'scenario-{phase}-macro'
317 # vim: set ts=2 sw=2 expandtab: