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-engine'
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'
64 slave-label: 'vpod-deploy-city'
65 yardstick-dispatcher: 'file'
66 build-trigger: 'H H/3 * * *'
68 slave-label: 'baremetal-deploy'
69 yardstick-dispatcher: 'influxdb'
70 build-trigger: '@daily'
81 - 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
82 - 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
85 name: 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
87 project-type: multijob
89 disabled: '{obj:disabled}'
97 - nordix-gerrit-parameters
100 default: '{slave-label}'
101 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
104 default: '{distribution}'
105 description: 'Distribution to use for configuring target nodes (networking etc.)'
109 description: 'Type of the deployment'
111 name: USE_PREBUILT_DEPLOYMENT_IMAGE
113 description: 'Use prebuilt deployment image while running as part of CI/CD'
115 name: IPA_DIB_OS_ELEMENT
116 default: '{ipa_dib_os_element}'
117 description: 'DIB OS Element to use for building the ramdisk image'
120 default: '{dib_os_release}'
121 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
124 default: '{dib_os_element}'
125 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
129 description: 'Installer to use for deploying the scenario'
131 name: DEPLOY_SCENARIO
132 default: 'k8-calico-nofeature'
133 description: 'Scenario to deploy and test'
137 description: 'Test suite to run'
139 name: YARDSTICK_DISPATCHER
140 default: '{yardstick-dispatcher}'
141 description: 'Dispatcher to use for Yardstick reporting'
145 description: 'Cleanup leftovers of the previous run'
150 use-build-blocker: true
152 - 'cloud-infra-verify-engine-{os}-.*'
153 - 'cloud-infra-verify-scenario-{os}-.*'
154 - 'cloud-infra-periodic-engine-{os}-.*'
155 - 'cloud-infra-os-.*'
156 - 'cloud-infra-k8-.*'
166 - fix-workspace-permissions
170 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
175 - timed: '{build-trigger}'
180 condition: SUCCESSFUL
182 - name: 'cloud-infra-periodic-{os}-deploy-{type}-{stream}'
183 current-parameters: true
184 predefined-parameters: |
185 DISTRIBUTION=$DISTRIBUTION
186 DEPLOY_TYPE=$DEPLOY_TYPE
187 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
188 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
189 DIB_OS_RELEASE=$DIB_OS_RELEASE
190 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
191 INSTALLER_TYPE=$INSTALLER_TYPE
192 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
195 node-parameters: true
196 kill-phase-on: FAILURE
202 - name: 'cloud-infra-periodic-{os}-functest-{type}-{stream}'
203 current-parameters: true
204 predefined-parameters: |
205 DISTRIBUTION=$DISTRIBUTION
206 DEPLOY_TYPE=$DEPLOY_TYPE
207 INSTALLER_TYPE=$INSTALLER_TYPE
208 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
209 TEST_SUITE=$TEST_SUITE
210 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
212 node-parameters: true
219 - name: 'cloud-infra-periodic-{os}-yardstick-{type}-{stream}'
220 current-parameters: true
221 predefined-parameters: |
222 DISTRIBUTION=$DISTRIBUTION
223 DEPLOY_TYPE=$DEPLOY_TYPE
224 INSTALLER_TYPE=$INSTALLER_TYPE
225 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
226 TEST_SUITE=$TEST_SUITE
227 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
229 node-parameters: true
234 name: 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
246 default: $GERRIT_PROJECT
250 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
254 description: 'Type of the deployment. Overriden by upstream job.'
256 name: USE_PREBUILT_DEPLOYMENT_IMAGE
258 description: 'Use prebuilt deployment image while running as part of CI/CD'
260 name: IPA_DIB_OS_ELEMENT
262 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
266 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
269 default: 'ubuntu-minimal'
270 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
272 name: ENGINE_ANSIBLE_PARAMS
274 description: 'Extra paramters that can be added when run the play books.'
278 description: 'Installer to use for deploying the scenario'
280 name: DEPLOY_SCENARIO
281 default: 'k8-calico-nofeature'
282 description: 'Scenario to deploy and test'
286 description: 'Test framework to use'
290 description: 'Test suite to run'
293 default: 'https://gerrit.nordix.org/infra/test.git'
294 description: 'URL to Nordix Cloud Infra test repository'
296 name: YARDSTICK_DISPATCHER
298 description: 'Dispatcher to use for Yardstick reporting'
305 timeout: '{build-timeout}'
306 - fix-workspace-permissions
310 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
315 - 'cloud-infra-{phase}-macro'
317 # vim: set ts=2 sw=2 expandtab: