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 patches
23 # that are sent to the repositories below
26 # These jobs verify changes that
27 # - implement new features or fix bugs to the playbooks and roles used for utilizing
28 # open source test frameworks such as opnfv/functest and opnfv/yardstick
29 # - bump versions of the open source test frameworks
31 # These jobs are set to run on slaves with label vpod-test-ubuntu1604.
33 # - Ubuntu1604 as the base distro
34 # - nested virtualization
37 # - 16 CPUs/32GB RAM/200 GB Disk
38 # - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
39 # gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
41 # The slaves should have a promoted version of a cloud infra scenario deployed on them.
42 # Currently k8-calico-nofeature scenario is deployed on the slaves.
43 #--------------------------------------------------------------------------------------
46 name: 'cloud-infra-verify-test'
58 distribution: 'ubuntu18'
61 distribution: 'centos7'
71 - 'cloud-infra-verify-testfw-{os}-{type}-{stream}'
72 - 'cloud-infra-verify-testfw-{os}-{phase}-{type}-{stream}'
75 name: 'cloud-infra-verify-testfw-{os}-{type}-{stream}'
77 project-type: multijob
79 disabled: '{obj:disabled}'
87 - nordix-gerrit-parameters
90 default: 'vpod-test-{os}'
91 description: 'Slave label to schedule this job on. These slaves have cloud infra installed on them.'
94 default: '{distribution}'
95 description: 'Distribution to use for configuring target nodes (networking etc.)'
99 description: 'Type of the deployment'
101 name: DEPLOY_SCENARIO
102 default: 'k8-calico-nofeature'
103 description: 'Scenario to deploy and test'
106 default: 'healthcheck'
107 description: 'Test suite to run'
109 name: YARDSTICK_DISPATCHER
111 description: 'Dispatcher to use for Yardstick reporting'
115 description: 'Cleanup leftovers of the previous run'
120 use-build-blocker: true
122 - 'cloud-infra-verify-testfw-{os}-.*'
132 - fix-workspace-permissions
136 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
138 refspec: $GERRIT_REFSPEC
141 - nordix-gerrit-trigger-patchset-created:
142 project: 'infra\/test'
149 condition: SUCCESSFUL
151 - name: 'cloud-infra-verify-testfw-{os}-functest-{type}-{stream}'
152 current-parameters: true
153 predefined-parameters: |
154 DISTRIBUTION=$DISTRIBUTION
155 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
156 TEST_SUITE=$TEST_SUITE
157 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
159 GERRIT_PROJECT=$GERRIT_PROJECT
160 GERRIT_BRANCH=$GERRIT_BRANCH
161 GERRIT_REFSPEC=$GERRIT_REFSPEC
162 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
163 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
164 node-parameters: true
165 kill-phase-on: FAILURE
169 condition: SUCCESSFUL
171 - name: 'cloud-infra-verify-testfw-{os}-yardstick-{type}-{stream}'
172 current-parameters: true
173 predefined-parameters: |
174 DISTRIBUTION=$DISTRIBUTION
175 DEPLOY_TYPE=$DEPLOY_TYPE
176 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
177 TEST_SUITE=$TEST_SUITE
178 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
180 GERRIT_PROJECT=$GERRIT_PROJECT
181 GERRIT_BRANCH=$GERRIT_BRANCH
182 GERRIT_REFSPEC=$GERRIT_REFSPEC
183 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
184 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
185 node-parameters: true
186 kill-phase-on: FAILURE
190 name: 'cloud-infra-verify-testfw-{os}-{phase}-{type}-{stream}'
202 default: $GERRIT_PROJECT
206 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
210 description: 'Type of the deployment. Overriden by upstream job.'
212 name: DEPLOY_SCENARIO
213 default: 'k8-calico-nofeature'
214 description: 'Scenario to deploy and test'
218 description: 'Test framework to use'
221 default: 'healthcheck'
222 description: 'Test suite to run'
225 default: 'https://gerrit.nordix.org/infra/test.git'
226 description: 'URL to Nordix Cloud Infra test repository'
228 name: YARDSTICK_DISPATCHER
230 description: 'Dispatcher to use for Yardstick reporting'
238 - fix-workspace-permissions
242 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
244 refspec: $GERRIT_REFSPEC
247 - 'cloud-infra-testfw-macro'
249 # vim: set ts=2 sw=2 expandtab: