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
70 slave-label: 'baremetal-deploy'
71 yardstick-dispatcher: 'influxdb'
84 - '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
85 - 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
88 name: '{deploy-scenario}-periodic-{distro}-{type}-{stream}'
90 project-type: multijob
92 disabled: '{obj:disabled}'
100 - nordix-gerrit-parameters
103 default: '{slave-label}'
104 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
108 description: 'Distribution to use for configuring target nodes (networking etc.)'
112 description: 'Type of the deployment'
114 name: USE_PREBUILT_DEPLOYMENT_IMAGE
116 description: 'Use prebuilt deployment image while running as part of CI/CD'
119 default: '{installer-type}'
120 description: 'Installer to use for deploying the scenario'
122 name: DEPLOY_SCENARIO
123 default: '{deploy-scenario}'
124 description: 'Scenario to deploy and test'
128 description: 'Test suite to run'
130 name: YARDSTICK_DISPATCHER
131 default: '{yardstick-dispatcher}'
132 description: 'Dispatcher to use for Yardstick reporting'
136 description: 'Cleanup leftovers of the previous run'
141 use-build-blocker: true
143 - 'cloud-infra-periodic-engine-{distro}-.*'
144 - 'k8-.*?-periodic-.*'
154 - fix-workspace-permissions
158 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
166 - description-setter:
167 description: $INSTALLER_TYPE
170 condition: SUCCESSFUL
172 - name: 'scenario-periodic-{distro}-deploy-{type}-{stream}'
173 current-parameters: true
174 predefined-parameters: |
176 DEPLOY_TYPE=$DEPLOY_TYPE
177 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
178 INSTALLER_TYPE=$INSTALLER_TYPE
179 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
182 node-parameters: true
183 kill-phase-on: FAILURE
187 condition: SUCCESSFUL
189 - name: 'scenario-periodic-{distro}-functest-{type}-{stream}'
190 current-parameters: true
191 predefined-parameters: |
193 DEPLOY_TYPE=$DEPLOY_TYPE
194 INSTALLER_TYPE=$INSTALLER_TYPE
195 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
196 TEST_SUITE=$TEST_SUITE
197 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
199 node-parameters: true
200 kill-phase-on: FAILURE
204 condition: SUCCESSFUL
206 - name: 'scenario-periodic-{distro}-yardstick-{type}-{stream}'
207 current-parameters: true
208 predefined-parameters: |
210 DEPLOY_TYPE=$DEPLOY_TYPE
211 INSTALLER_TYPE=$INSTALLER_TYPE
212 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
213 TEST_SUITE=$TEST_SUITE
214 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
216 node-parameters: true
217 kill-phase-on: FAILURE
221 condition: SUCCESSFUL
223 - name: 'scenario-periodic-{distro}-promote-{type}-{stream}'
224 current-parameters: true
225 predefined-parameters: |
227 DEPLOY_TYPE=$DEPLOY_TYPE
228 INSTALLER_TYPE=$INSTALLER_TYPE
229 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
230 TEST_SUITE=$TEST_SUITE
231 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
233 node-parameters: true
234 kill-phase-on: FAILURE
238 name: 'scenario-periodic-{distro}-{phase}-{type}-{stream}'
250 default: $GERRIT_PROJECT
253 default: 'ubuntu1804'
254 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
258 description: 'Type of the deployment. Overriden by upstream job.'
260 name: USE_PREBUILT_DEPLOYMENT_IMAGE
262 description: 'Use prebuilt deployment image while running as part of CI/CD'
264 name: ENGINE_ANSIBLE_PARAMS
266 description: 'Extra paramters that can be added when run the play books.'
268 name: DEPLOY_SCENARIO
269 default: 'k8-calico-nofeature'
270 description: 'Scenario to deploy and test'
274 description: 'Installer to use for deploying the scenario'
278 description: 'Test framework to use'
282 description: 'Test suite to run'
285 default: 'https://gerrit.nordix.org/infra/test.git'
286 description: 'URL to Nordix Cloud Infra test repository'
288 name: YARDSTICK_DISPATCHER
290 description: 'Dispatcher to use for Yardstick reporting'
297 timeout: '{build-timeout}'
298 - fix-workspace-permissions
302 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
307 - description-setter:
308 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
309 - 'scenario-{phase}-macro'
311 # vim: set ts=2 sw=2 expandtab: