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
76 slave-label: 'baremetal-deploy'
77 yardstick-dispatcher: 'influxdb'
90 - '{deploy-scenario}-periodic-{os}-{type}-{stream}'
91 - '{deploy-scenario}-periodic-{os}-{phase}-{type}-{stream}'
94 name: '{deploy-scenario}-periodic-{os}-{type}-{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'
113 default: '{distribution}'
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: IPA_DIB_OS_ELEMENT
125 default: '{ipa_dib_os_element}'
126 description: 'DIB OS Element to use for building the ramdisk image'
129 default: '{dib_os_release}'
130 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
133 default: '{dib_os_element}'
134 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
137 default: '{installer-type}'
138 description: 'Installer to use for deploying the scenario'
140 name: DEPLOY_SCENARIO
141 default: '{deploy-scenario}'
142 description: 'Scenario to deploy and test'
146 description: 'Test suite to run'
148 name: YARDSTICK_DISPATCHER
149 default: '{yardstick-dispatcher}'
150 description: 'Dispatcher to use for Yardstick reporting'
154 description: 'Cleanup leftovers of the previous run'
159 use-build-blocker: true
161 - 'cloud-infra-periodic-engine-{os}-.*'
162 - 'k8-.*?-periodic-.*'
172 - fix-workspace-permissions
176 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
184 - description-setter:
185 description: $INSTALLER_TYPE
188 condition: SUCCESSFUL
190 - name: 'scenario-periodic-{os}-deploy-{type}-{stream}'
191 current-parameters: true
192 predefined-parameters: |
193 DISTRIBUTION=$DISTRIBUTION
194 DEPLOY_TYPE=$DEPLOY_TYPE
195 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
196 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
197 DIB_OS_RELEASE=$DIB_OS_RELEASE
198 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
199 INSTALLER_TYPE=$INSTALLER_TYPE
200 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
203 node-parameters: true
204 kill-phase-on: FAILURE
210 - name: 'scenario-periodic-{os}-functest-{type}-{stream}'
211 current-parameters: true
212 predefined-parameters: |
213 DISTRIBUTION=$DISTRIBUTION
214 DEPLOY_TYPE=$DEPLOY_TYPE
215 INSTALLER_TYPE=$INSTALLER_TYPE
216 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
217 TEST_SUITE=$TEST_SUITE
218 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
220 node-parameters: true
221 kill-phase-on: FAILURE
227 - name: 'scenario-periodic-{os}-yardstick-{type}-{stream}'
228 current-parameters: true
229 predefined-parameters: |
230 DISTRIBUTION=$DISTRIBUTION
231 DEPLOY_TYPE=$DEPLOY_TYPE
232 INSTALLER_TYPE=$INSTALLER_TYPE
233 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
234 TEST_SUITE=$TEST_SUITE
235 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
237 node-parameters: true
238 kill-phase-on: FAILURE
244 - name: 'scenario-periodic-{os}-promote-{type}-{stream}'
245 current-parameters: true
246 predefined-parameters: |
247 DISTRIBUTION=$DISTRIBUTION
248 DEPLOY_TYPE=$DEPLOY_TYPE
249 INSTALLER_TYPE=$INSTALLER_TYPE
250 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
251 TEST_SUITE=$TEST_SUITE
252 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
254 node-parameters: true
255 kill-phase-on: FAILURE
259 name: '{deploy-scenario}-periodic-{os}-{phase}-{type}-{stream}'
271 default: $GERRIT_PROJECT
275 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
279 description: 'Type of the deployment. Overriden by upstream job.'
281 name: USE_PREBUILT_DEPLOYMENT_IMAGE
283 description: 'Use prebuilt deployment image while running as part of CI/CD'
285 name: IPA_DIB_OS_ELEMENT
287 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
291 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
294 default: 'ubuntu-minimal'
295 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
297 name: ENGINE_ANSIBLE_PARAMS
299 description: 'Extra paramters that can be added when run the play books.'
301 name: DEPLOY_SCENARIO
302 default: 'k8-calico-nofeature'
303 description: 'Scenario to deploy and test'
307 description: 'Installer to use for deploying the scenario'
311 description: 'Test framework to use'
315 description: 'Test suite to run'
318 default: 'https://gerrit.nordix.org/infra/test.git'
319 description: 'URL to Nordix Cloud Infra test repository'
321 name: YARDSTICK_DISPATCHER
323 description: 'Dispatcher to use for Yardstick reporting'
330 timeout: '{build-timeout}'
331 - fix-workspace-permissions
335 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
340 - description-setter:
341 description: $INSTALLER_TYPE - $DEPLOY_SCENARIO
342 - 'scenario-{phase}-macro'
344 # vim: set ts=2 sw=2 expandtab: