2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2019 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 name: 'kubernetes-deploy-test'
23 project: 'kubernetes-deploy-test'
28 deploy-scenario: 'k8-multus-plugins'
31 deploy-scenario: 'k8-multus-plugins'
34 deploy-scenario: 'k8-multus-plugins'
37 deploy-scenario: 'k8-multus-plugins'
40 deploy-scenario: 'k8-multus-plugins'
43 deploy-scenario: 'k8-calico-nofeature'
46 deploy-scenario: 'k8-calico-nofeature'
54 execution-mode: offline-deployment
55 pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
56 idf: 'file:///opt/engine/offline/git/hwconfig/pods'
57 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
62 execution-mode: offline-deployment
65 execution-mode: online-test
68 execution-mode: online-test
71 - 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
72 - 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
75 name: 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
77 project-type: multijob
79 disabled: '{obj:disabled}'
81 node: baremetal-deploy
88 default: 'offline-deployment'
89 description: 'Engine execution mode'
92 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
93 description: 'PDF file to use for deployment. DO NOT MODIFY!'
96 default: '{idf}/${{NODE_NAME}}-idf.yml'
97 description: 'IDF file to use for deployment. DO NOT MODIFY!'
100 default: 'baremetal-deploy'
101 description: 'Type of the slave'
119 sudo chown -R $USER:$USER $WORKSPACE || exit 1
120 # offline nodes can not resolve Nordix Artifactory and Gerrit
121 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
122 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
123 sudo sed -i 's/^search/# search/' /etc/resolv.conf
124 sudo bash -c "cat << EOF >> /etc/hosts
126 91.106.198.25 artifactory.nordix.org
127 91.106.198.142 gerrit.nordix.org
128 86.107.242.50 fra1.citycloud.com
131 # we need to get rid of search domain as well
132 sudo sed -i 's/^search/# search/' /etc/resolv.conf
137 url: https://gerrit.nordix.org/infra/engine.git
144 - description-setter:
145 description: $DEPLOY_SCENARIO
146 - 'download-deploy-artifact-macro'
148 name: "Offline Deployment on Baremetal using {deploy-scenario}"
149 condition: SUCCESSFUL
150 execution-type: PARALLEL
152 - name: 'kubernetes-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
153 current-parameters: true
155 node-parameters: true
156 kill-phase-on: FAILURE
159 name: Functional Testing
162 - name: 'kubernetes-release-{environment-type}-functest-{distro}-baremetal-{stream}'
163 current-parameters: true
165 node-parameters: true
166 kill-phase-on: FAILURE
169 name: Platform Benchmarking
172 - name: 'kubernetes-release-{environment-type}-yardstick-{distro}-baremetal-{stream}'
173 current-parameters: true
175 node-parameters: true
176 kill-phase-on: FAILURE
180 name: 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
182 disabled: '{obj:disabled}'
187 default: '{execution-mode}'
188 description: 'Execution mode'
191 default: 'https://gerrit.nordix.org/infra/test.git'
192 description: 'URL to clone the test repo from'
196 description: 'Test framework to use'
200 description: 'Test suite to run'
202 name: YARDSTICK_DISPATCHER
204 description: 'Dispatcher to use for Yardstick reporting'
215 timeout: '{build-timeout}'
217 - fix-workspace-permissions
218 - credentials-binding:
220 credential-id: '{openrc-credentials-file}'
221 variable: OPENRC_FILE
224 - description-setter:
225 description: $DEPLOY_SCENARIO