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'
51 distribution: 'ubuntu18'
52 ipa_dib_os_element: 'coreos'
53 dib_os_release: 'bionic'
54 dib_os_element: 'ubuntu-minimal'
57 distribution: 'centos7'
58 ipa_dib_os_element: 'coreos'
60 dib_os_element: 'centos-minimal'
63 - k8-calico-nofeature:
64 installer-type: kubespray
65 - k8-flannel-nofeature:
66 installer-type: kubespray
68 installer-type: kubespray
69 - k8-cilium-nofeature:
70 installer-type: kubespray
72 installer-type: kubespray
73 - k8-multus-nofeature:
74 installer-type: kubespray
78 slave-label: 'baremetal-deploy'
79 yardstick-dispatcher: 'influxdb'
92 - '{deploy-scenario}-periodic-{os}-{type}-{stream}'
93 - 'scenario-periodic-{os}-{phase}-{type}-{stream}'
96 name: '{deploy-scenario}-periodic-{os}-{type}-{stream}'
98 project-type: multijob
100 disabled: '{obj:disabled}'
105 - project-parameters:
108 - nordix-gerrit-parameters
111 default: '{slave-label}'
112 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
115 default: '{distribution}'
116 description: 'Distribution to use for configuring target nodes (networking etc.)'
120 description: 'Type of the deployment'
122 name: USE_PREBUILT_DEPLOYMENT_IMAGE
124 description: 'Use prebuilt deployment image while running as part of CI/CD'
126 name: IPA_DIB_OS_ELEMENT
127 default: '{ipa_dib_os_element}'
128 description: 'DIB OS Element to use for building the ramdisk image'
131 default: '{dib_os_release}'
132 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
135 default: '{dib_os_element}'
136 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
139 default: '{installer-type}'
140 description: 'Installer to use for deploying the scenario'
142 name: DEPLOY_SCENARIO
143 default: '{deploy-scenario}'
144 description: 'Scenario to deploy and test'
148 description: 'Test suite to run'
150 name: YARDSTICK_DISPATCHER
151 default: '{yardstick-dispatcher}'
152 description: 'Dispatcher to use for Yardstick reporting'
156 description: 'Cleanup leftovers of the previous run'
161 use-build-blocker: true
163 - 'cloud-infra-periodic-engine-{os}-.*'
164 - 'k8-.*?-periodic-.*'
174 - fix-workspace-permissions
178 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
186 - description-setter:
187 description: $INSTALLER_TYPE
190 condition: SUCCESSFUL
192 - name: 'scenario-periodic-{os}-deploy-{type}-{stream}'
193 current-parameters: true
194 predefined-parameters: |
195 DISTRIBUTION=$DISTRIBUTION
196 DEPLOY_TYPE=$DEPLOY_TYPE
197 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
198 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
199 DIB_OS_RELEASE=$DIB_OS_RELEASE
200 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
201 INSTALLER_TYPE=$INSTALLER_TYPE
202 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
205 node-parameters: true
206 kill-phase-on: FAILURE
210 condition: SUCCESSFUL
212 - name: 'scenario-periodic-{os}-functest-{type}-{stream}'
213 current-parameters: true
214 predefined-parameters: |
215 DISTRIBUTION=$DISTRIBUTION
216 DEPLOY_TYPE=$DEPLOY_TYPE
217 INSTALLER_TYPE=$INSTALLER_TYPE
218 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
219 TEST_SUITE=$TEST_SUITE
220 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
222 node-parameters: true
223 kill-phase-on: FAILURE
227 condition: SUCCESSFUL
229 - name: 'scenario-periodic-{os}-yardstick-{type}-{stream}'
230 current-parameters: true
231 predefined-parameters: |
232 DISTRIBUTION=$DISTRIBUTION
233 DEPLOY_TYPE=$DEPLOY_TYPE
234 INSTALLER_TYPE=$INSTALLER_TYPE
235 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
236 TEST_SUITE=$TEST_SUITE
237 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
239 node-parameters: true
240 kill-phase-on: FAILURE
244 condition: SUCCESSFUL
246 - name: 'scenario-periodic-{os}-promote-{type}-{stream}'
247 current-parameters: true
248 predefined-parameters: |
249 DISTRIBUTION=$DISTRIBUTION
250 DEPLOY_TYPE=$DEPLOY_TYPE
251 INSTALLER_TYPE=$INSTALLER_TYPE
252 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
253 TEST_SUITE=$TEST_SUITE
254 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
256 node-parameters: true
257 kill-phase-on: FAILURE
261 name: 'scenario-periodic-{os}-{phase}-{type}-{stream}'
273 default: $GERRIT_PROJECT
277 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
281 description: 'Type of the deployment. Overriden by upstream job.'
283 name: USE_PREBUILT_DEPLOYMENT_IMAGE
285 description: 'Use prebuilt deployment image while running as part of CI/CD'
287 name: IPA_DIB_OS_ELEMENT
289 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
293 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
296 default: 'ubuntu-minimal'
297 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
299 name: ENGINE_ANSIBLE_PARAMS
301 description: 'Extra paramters that can be added when run the play books.'
303 name: DEPLOY_SCENARIO
304 default: 'k8-calico-nofeature'
305 description: 'Scenario to deploy and test'
309 description: 'Installer to use for deploying the scenario'
313 description: 'Test framework to use'
317 description: 'Test suite to run'
320 default: 'https://gerrit.nordix.org/infra/test.git'
321 description: 'URL to Nordix Cloud Infra test repository'
323 name: YARDSTICK_DISPATCHER
325 description: 'Dispatcher to use for Yardstick reporting'
332 timeout: '{build-timeout}'
333 - fix-workspace-permissions
337 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
342 - description-setter:
343 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
344 - 'scenario-{phase}-macro'
346 # vim: set ts=2 sw=2 expandtab: