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-kubernetes'
41 project: 'infra/engine'
53 - k8-calico-nofeature:
55 - k8-flannel-nofeature:
59 - k8-cilium-nofeature:
63 - k8-multus-nofeature:
71 pod-name: est-baremetal
72 provisioner-type: bifrost
73 installer-type: kubespray
74 slave-label: baremetal-deploy
75 yardstick-dispatcher: 'influxdb'
88 - '{deploy-scenario}-{distro}-kubespray-{type}-{ci-loop}-{stream}'
89 - 'kubernetes-{phase}-{distro}-kubespray-{type}-{ci-loop}-{stream}'
92 name: '{deploy-scenario}-{distro}-kubespray-{type}-{ci-loop}-{stream}'
94 project-type: multijob
96 disabled: '{obj:disabled}'
101 - project-parameters:
104 - nordix-gerrit-parameters
107 default: '{slave-label}'
108 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
112 description: 'Distribution to use for configuring target nodes (networking etc.)'
116 description: 'Type of the deployment'
118 name: USE_PREBUILT_DEPLOYMENT_IMAGE
120 description: 'Use prebuilt deployment image while running as part of CI/CD'
122 name: PROVISIONER_TYPE
123 default: '{provisioner-type}'
124 description: 'Provisioner to use for provisioning nodes'
127 default: '{installer-type}'
128 description: 'Installer to use for deploying the scenario'
130 name: DEPLOY_SCENARIO
131 default: '{deploy-scenario}'
132 description: 'Scenario to deploy and test'
136 description: 'Test suite to run'
138 name: YARDSTICK_DISPATCHER
139 default: '{yardstick-dispatcher}'
140 description: 'Dispatcher to use for Yardstick reporting'
145 use-build-blocker: true
147 - 'cloud-infra-verify-engine-.*'
148 - 'cloud-infra-verify-scenario-.*'
149 - 'cloud-infra-periodic-engine-.*'
163 - fix-workspace-permissions
167 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
177 - description-setter:
178 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
181 condition: SUCCESSFUL
183 - name: 'kubernetes-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
184 current-parameters: true
185 predefined-parameters: |
187 DEPLOY_TYPE=$DEPLOY_TYPE
188 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
189 PROVISIONER_TYPE=$PROVISIONER_TYPE
190 INSTALLER_TYPE=$INSTALLER_TYPE
191 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
193 node-parameters: true
194 kill-phase-on: FAILURE
200 - name: 'kubernetes-functest-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
201 current-parameters: true
202 predefined-parameters: |
204 DEPLOY_TYPE=$DEPLOY_TYPE
205 PROVISIONER_TYPE=$PROVISIONER_TYPE
206 INSTALLER_TYPE=$INSTALLER_TYPE
207 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
208 TEST_SUITE=$TEST_SUITE
209 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
210 node-parameters: true
217 - name: 'kubernetes-yardstick-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
218 current-parameters: true
219 predefined-parameters: |
221 DEPLOY_TYPE=$DEPLOY_TYPE
222 PROVISIONER_TYPE=$PROVISIONER_TYPE
223 INSTALLER_TYPE=$INSTALLER_TYPE
224 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
225 TEST_SUITE=$TEST_SUITE
226 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
227 node-parameters: true
232 condition: SUCCESSFUL
234 - name: 'kubernetes-promote-{distro}-{installer-type}-{type}-{ci-loop}-{stream}'
235 current-parameters: true
236 predefined-parameters: |
238 DEPLOY_TYPE=$DEPLOY_TYPE
239 PROVISIONER_TYPE=$PROVISIONER_TYPE
240 INSTALLER_TYPE=$INSTALLER_TYPE
241 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
242 TEST_SUITE=$TEST_SUITE
243 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
244 node-parameters: true
245 kill-phase-on: FAILURE
249 name: 'kubernetes-{phase}-{distro}-kubespray-{type}-{ci-loop}-{stream}'
261 default: $GERRIT_PROJECT
264 default: 'ubuntu1804'
265 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
269 description: 'Type of the deployment. Overriden by upstream job.'
271 name: USE_PREBUILT_DEPLOYMENT_IMAGE
273 description: 'Use prebuilt deployment image while running as part of CI/CD'
275 name: ENGINE_ANSIBLE_PARAMS
277 description: 'Extra paramters that can be added when run the play books.'
279 name: DEPLOY_SCENARIO
280 default: 'k8-calico-nofeature'
281 description: 'Scenario to deploy and test'
283 name: PROVISIONER_TYPE
285 description: 'Provisioner to use for provisioning nodes'
289 description: 'Installer to use for deploying the scenario'
293 description: 'Test framework to use'
297 description: 'Test suite to run'
300 default: 'https://gerrit.nordix.org/infra/test.git'
301 description: 'URL to Nordix Cloud Infra test repository'
303 name: YARDSTICK_DISPATCHER
305 description: 'Dispatcher to use for Yardstick reporting'
309 timeout: '{build-timeout}'
310 - fix-workspace-permissions
314 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
321 - description-setter:
322 description: $PROVISIONER_TYPE | $INSTALLER_TYPE | $DEPLOY_SCENARIO
323 - 'scenario-{phase}-macro'
325 # vim: set ts=2 sw=2 expandtab: