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'
77 provisioner-type: 'bifrost'
90 - '{deploy-scenario}-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
91 - 'scenario-{distro}-{phase}-{type}-{ci-loop}-{stream}'
94 name: '{deploy-scenario}-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
96 project-type: multijob
98 disabled: '{obj:disabled}'
103 - project-parameters:
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: PROVISIONER_TYPE
125 default: '{provisioner-type}'
126 description: 'Provisioner to use for provisioning nodes'
129 default: '{installer-type}'
130 description: 'Installer to use for deploying the scenario'
132 name: DEPLOY_SCENARIO
133 default: '{deploy-scenario}'
134 description: 'Scenario to deploy and test'
138 description: 'Test suite to run'
140 name: YARDSTICK_DISPATCHER
141 default: '{yardstick-dispatcher}'
142 description: 'Dispatcher to use for Yardstick reporting'
146 description: 'Cleanup leftovers of the previous run'
151 use-build-blocker: true
153 - 'cloud-infra-periodic-engine-.*'
165 - fix-workspace-permissions
169 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
179 - description-setter:
180 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
183 condition: SUCCESSFUL
185 - name: 'scenario-{distro}-deploy-{type}-{ci-loop}-{stream}'
186 current-parameters: true
187 predefined-parameters: |
189 DEPLOY_TYPE=$DEPLOY_TYPE
190 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
191 PROVISIONER_TYPE=$PROVISIONER_TYPE
192 INSTALLER_TYPE=$INSTALLER_TYPE
193 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
196 node-parameters: true
197 kill-phase-on: FAILURE
201 condition: SUCCESSFUL
203 - name: 'scenario-{distro}-functest-{type}-{ci-loop}-{stream}'
204 current-parameters: true
205 predefined-parameters: |
207 DEPLOY_TYPE=$DEPLOY_TYPE
208 PROVISIONER_TYPE=$PROVISIONER_TYPE
209 INSTALLER_TYPE=$INSTALLER_TYPE
210 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
211 TEST_SUITE=$TEST_SUITE
212 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
214 node-parameters: true
215 kill-phase-on: FAILURE
219 condition: SUCCESSFUL
221 - name: 'scenario-{distro}-yardstick-{type}-{ci-loop}-{stream}'
222 current-parameters: true
223 predefined-parameters: |
225 DEPLOY_TYPE=$DEPLOY_TYPE
226 PROVISIONER_TYPE=$PROVISIONER_TYPE
227 INSTALLER_TYPE=$INSTALLER_TYPE
228 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
229 TEST_SUITE=$TEST_SUITE
230 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
232 node-parameters: true
233 kill-phase-on: FAILURE
237 condition: SUCCESSFUL
239 - name: 'scenario-{distro}-promote-{type}-{ci-loop}-{stream}'
240 current-parameters: true
241 predefined-parameters: |
243 DEPLOY_TYPE=$DEPLOY_TYPE
244 PROVISIONER_TYPE=$PROVISIONER_TYPE
245 INSTALLER_TYPE=$INSTALLER_TYPE
246 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
247 TEST_SUITE=$TEST_SUITE
248 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
250 node-parameters: true
251 kill-phase-on: FAILURE
255 name: 'scenario-{distro}-{phase}-{type}-{ci-loop}-{stream}'
267 default: $GERRIT_PROJECT
270 default: 'ubuntu1804'
271 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
275 description: 'Type of the deployment. Overriden by upstream job.'
277 name: USE_PREBUILT_DEPLOYMENT_IMAGE
279 description: 'Use prebuilt deployment image while running as part of CI/CD'
281 name: ENGINE_ANSIBLE_PARAMS
283 description: 'Extra paramters that can be added when run the play books.'
285 name: DEPLOY_SCENARIO
286 default: 'k8-calico-nofeature'
287 description: 'Scenario to deploy and test'
289 name: PROVISIONER_TYPE
291 description: 'Provisioner to use for provisioning nodes'
295 description: 'Installer to use for deploying the scenario'
299 description: 'Test framework to use'
303 description: 'Test suite to run'
306 default: 'https://gerrit.nordix.org/infra/test.git'
307 description: 'URL to Nordix Cloud Infra test repository'
309 name: YARDSTICK_DISPATCHER
311 description: 'Dispatcher to use for Yardstick reporting'
318 timeout: '{build-timeout}'
319 - fix-workspace-permissions
323 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
330 - description-setter:
331 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
332 - 'scenario-{phase}-macro'
334 # vim: set ts=2 sw=2 expandtab: