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'
58 - k8-calico-nofeature:
59 installer-type: kubespray
60 - k8-flannel-nofeature:
61 installer-type: kubespray
63 installer-type: kubespray
64 - k8-cilium-nofeature:
65 installer-type: kubespray
67 installer-type: kubespray
68 - k8-multus-nofeature:
69 installer-type: kubespray
75 slave-label: 'baremetal-deploy'
76 yardstick-dispatcher: 'influxdb'
89 - '{deploy-scenario}-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
90 - 'scenario-{distro}-{phase}-{type}-{ci-loop}-{stream}'
93 name: '{deploy-scenario}-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
95 project-type: multijob
97 disabled: '{obj:disabled}'
102 - project-parameters:
105 - nordix-gerrit-parameters
108 default: '{slave-label}'
109 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
113 description: 'Distribution to use for configuring target nodes (networking etc.)'
117 description: 'Type of the deployment'
119 name: USE_PREBUILT_DEPLOYMENT_IMAGE
121 description: 'Use prebuilt deployment image while running as part of CI/CD'
124 default: '{installer-type}'
125 description: 'Installer to use for deploying the scenario'
127 name: DEPLOY_SCENARIO
128 default: '{deploy-scenario}'
129 description: 'Scenario to deploy and test'
133 description: 'Test suite to run'
135 name: YARDSTICK_DISPATCHER
136 default: '{yardstick-dispatcher}'
137 description: 'Dispatcher to use for Yardstick reporting'
141 description: 'Cleanup leftovers of the previous run'
146 use-build-blocker: true
148 - 'cloud-infra-periodic-engine-.*'
160 - fix-workspace-permissions
164 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
174 - description-setter:
175 description: $INSTALLER_TYPE
178 condition: SUCCESSFUL
180 - name: 'scenario-{distro}-deploy-{type}-{ci-loop}-{stream}'
181 current-parameters: true
182 predefined-parameters: |
184 DEPLOY_TYPE=$DEPLOY_TYPE
185 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
186 INSTALLER_TYPE=$INSTALLER_TYPE
187 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
190 node-parameters: true
191 kill-phase-on: FAILURE
195 condition: SUCCESSFUL
197 - name: 'scenario-{distro}-functest-{type}-{ci-loop}-{stream}'
198 current-parameters: true
199 predefined-parameters: |
201 DEPLOY_TYPE=$DEPLOY_TYPE
202 INSTALLER_TYPE=$INSTALLER_TYPE
203 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
204 TEST_SUITE=$TEST_SUITE
205 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
207 node-parameters: true
208 kill-phase-on: FAILURE
212 condition: SUCCESSFUL
214 - name: 'scenario-{distro}-yardstick-{type}-{ci-loop}-{stream}'
215 current-parameters: true
216 predefined-parameters: |
218 DEPLOY_TYPE=$DEPLOY_TYPE
219 INSTALLER_TYPE=$INSTALLER_TYPE
220 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
221 TEST_SUITE=$TEST_SUITE
222 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
224 node-parameters: true
225 kill-phase-on: FAILURE
229 condition: SUCCESSFUL
231 - name: 'scenario-{distro}-promote-{type}-{ci-loop}-{stream}'
232 current-parameters: true
233 predefined-parameters: |
235 DEPLOY_TYPE=$DEPLOY_TYPE
236 INSTALLER_TYPE=$INSTALLER_TYPE
237 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
238 TEST_SUITE=$TEST_SUITE
239 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
241 node-parameters: true
242 kill-phase-on: FAILURE
246 name: 'scenario-{distro}-{phase}-{type}-{ci-loop}-{stream}'
258 default: $GERRIT_PROJECT
261 default: 'ubuntu1804'
262 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
266 description: 'Type of the deployment. Overriden by upstream job.'
268 name: USE_PREBUILT_DEPLOYMENT_IMAGE
270 description: 'Use prebuilt deployment image while running as part of CI/CD'
272 name: ENGINE_ANSIBLE_PARAMS
274 description: 'Extra paramters that can be added when run the play books.'
276 name: DEPLOY_SCENARIO
277 default: 'k8-calico-nofeature'
278 description: 'Scenario to deploy and test'
282 description: 'Installer to use for deploying the scenario'
286 description: 'Test framework to use'
290 description: 'Test suite to run'
293 default: 'https://gerrit.nordix.org/infra/test.git'
294 description: 'URL to Nordix Cloud Infra test repository'
296 name: YARDSTICK_DISPATCHER
298 description: 'Dispatcher to use for Yardstick reporting'
305 timeout: '{build-timeout}'
306 - fix-workspace-permissions
310 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
317 - description-setter:
318 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
319 - 'scenario-{phase}-macro'
321 # vim: set ts=2 sw=2 expandtab: