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'
49 slave-label: vpod-deploy-ubuntu1804
51 slave-label: vpod-deploy-centos7
55 yardstick-dispatcher: 'file'
56 build-trigger: 'H H/3 * * *'
68 - 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
69 - 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
72 name: 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
74 project-type: multijob
76 disabled: '{obj:disabled}'
84 - nordix-gerrit-parameters
87 default: '{slave-label}'
88 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
92 description: 'Distribution to use for configuring target nodes (networking etc.)'
96 description: 'Type of the deployment'
98 name: USE_PREBUILT_DEPLOYMENT_IMAGE
100 description: 'Use prebuilt deployment image while running as part of CI/CD'
104 description: 'Installer to use for deploying the scenario'
106 name: DEPLOY_SCENARIO
107 default: 'k8-calico-nofeature'
108 description: 'Scenario to deploy and test'
112 description: 'Test suite to run'
114 name: YARDSTICK_DISPATCHER
115 default: '{yardstick-dispatcher}'
116 description: 'Dispatcher to use for Yardstick reporting'
120 description: 'Cleanup leftovers of the previous run'
125 use-build-blocker: true
127 - 'cloud-infra-verify-engine-.*'
128 - 'cloud-infra-verify-scenario-.*'
129 - 'cloud-infra-periodic-engine-.*'
143 - fix-workspace-permissions
147 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
154 - timed: '{build-trigger}'
159 condition: SUCCESSFUL
161 - name: 'cloud-infra-periodic-{distro}-deploy-{type}-{stream}'
162 current-parameters: true
163 predefined-parameters: |
165 DEPLOY_TYPE=$DEPLOY_TYPE
166 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
167 INSTALLER_TYPE=$INSTALLER_TYPE
168 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
171 node-parameters: true
172 kill-phase-on: FAILURE
178 - name: 'cloud-infra-periodic-{distro}-functest-{type}-{stream}'
179 current-parameters: true
180 predefined-parameters: |
182 DEPLOY_TYPE=$DEPLOY_TYPE
183 INSTALLER_TYPE=$INSTALLER_TYPE
184 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
185 TEST_SUITE=$TEST_SUITE
186 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
188 node-parameters: true
195 - name: 'cloud-infra-periodic-{distro}-yardstick-{type}-{stream}'
196 current-parameters: true
197 predefined-parameters: |
199 DEPLOY_TYPE=$DEPLOY_TYPE
200 INSTALLER_TYPE=$INSTALLER_TYPE
201 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
202 TEST_SUITE=$TEST_SUITE
203 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
205 node-parameters: true
210 name: 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
222 default: $GERRIT_PROJECT
225 default: 'ubuntu1804'
226 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
230 description: 'Type of the deployment. Overriden by upstream job.'
232 name: USE_PREBUILT_DEPLOYMENT_IMAGE
234 description: 'Use prebuilt deployment image while running as part of CI/CD'
236 name: ENGINE_ANSIBLE_PARAMS
238 description: 'Extra paramters that can be added when run the play books.'
242 description: 'Installer to use for deploying the scenario'
244 name: DEPLOY_SCENARIO
245 default: 'k8-calico-nofeature'
246 description: 'Scenario to deploy and test'
250 description: 'Test framework to use'
254 description: 'Test suite to run'
257 default: 'https://gerrit.nordix.org/infra/test.git'
258 description: 'URL to Nordix Cloud Infra test repository'
260 name: YARDSTICK_DISPATCHER
262 description: 'Dispatcher to use for Yardstick reporting'
269 timeout: '{build-timeout}'
270 - fix-workspace-permissions
274 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
281 - 'cloud-infra-{phase}-macro'
283 # vim: set ts=2 sw=2 expandtab: