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'
66 slave-label: 'baremetal-deploy'
77 - 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
78 - 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
81 name: 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
83 project-type: multijob
85 disabled: '{obj:disabled}'
93 - nordix-gerrit-parameters
96 default: '{slave-label}'
97 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
100 default: '{distribution}'
101 description: 'Distribution to use for configuring target nodes (networking etc.)'
105 description: 'Type of the deployment'
107 name: USE_PREBUILT_DEPLOYMENT_IMAGE
109 description: 'Use prebuilt deployment image while running as part of CI/CD'
111 name: IPA_DIB_OS_ELEMENT
112 default: '{ipa_dib_os_element}'
113 description: 'DIB OS Element to use for building the ramdisk image'
116 default: '{dib_os_release}'
117 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
120 default: '{dib_os_element}'
121 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
123 name: DEPLOY_SCENARIO
124 default: 'k8-calico-nofeature'
125 description: 'Scenario to deploy and test'
129 description: 'Test suite to run'
133 description: 'Cleanup leftovers of the previous run'
138 use-build-blocker: true
140 - 'cloud-infra-verify-engine-{os}-.*'
141 - 'cloud-infra-verify-scenario-{os}-.*'
142 - 'cloud-infra-periodic-engine-{os}-.*'
143 - 'cloud-infra-os-.*'
144 - 'cloud-infra-k8-.*'
154 - fix-workspace-permissions
158 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
163 - timed: 'H H/3 * * *'
168 condition: SUCCESSFUL
170 - name: 'cloud-infra-periodic-{os}-deploy-{type}-{stream}'
171 current-parameters: true
172 predefined-parameters: |
173 DISTRIBUTION=$DISTRIBUTION
174 DEPLOY_TYPE=$DEPLOY_TYPE
175 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
176 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
177 DIB_OS_RELEASE=$DIB_OS_RELEASE
178 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
179 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
182 node-parameters: true
183 kill-phase-on: FAILURE
189 - name: 'cloud-infra-periodic-{os}-functest-{type}-{stream}'
190 current-parameters: true
191 predefined-parameters: |
192 DISTRIBUTION=$DISTRIBUTION
193 DEPLOY_TYPE=$DEPLOY_TYPE
194 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
195 TEST_SUITE=$TEST_SUITE
197 node-parameters: true
204 - name: 'cloud-infra-periodic-{os}-yardstick-{type}-{stream}'
205 current-parameters: true
206 predefined-parameters: |
207 DISTRIBUTION=$DISTRIBUTION
208 DEPLOY_TYPE=$DEPLOY_TYPE
209 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
210 TEST_SUITE=$TEST_SUITE
212 node-parameters: true
217 name: 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
229 default: $GERRIT_PROJECT
233 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
237 description: 'Type of the deployment. Overriden by upstream job.'
239 name: USE_PREBUILT_DEPLOYMENT_IMAGE
241 description: 'Use prebuilt deployment image while running as part of CI/CD'
243 name: IPA_DIB_OS_ELEMENT
245 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
249 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
252 default: 'ubuntu-minimal'
253 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
255 name: ENGINE_ANSIBLE_PARAMS
257 description: 'Extra paramters that can be added when run the play books.'
259 name: DEPLOY_SCENARIO
260 default: 'k8-calico-nofeature'
261 description: 'Scenario to deploy and test'
265 description: 'Test framework to use'
269 description: 'Test suite to run'
272 default: 'https://gerrit.nordix.org/infra/test.git'
273 description: 'URL to Nordix Cloud Infra test repository'
280 timeout: '{build-timeout}'
281 - fix-workspace-permissions
285 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
290 - 'cloud-infra-{phase}-macro'
292 # vim: set ts=2 sw=2 expandtab: