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-calico-nofeature'
37 deploy-scenario: 'k8-calico-nofeature'
45 execution-mode: offline-deployment
46 pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
47 idf: 'file:///opt/engine/offline/git/hwconfig/pods'
48 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
53 execution-mode: offline-deployment
56 execution-mode: online-test
59 execution-mode: online-test
62 - 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
63 - 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
66 name: 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
68 project-type: multijob
70 disabled: '{obj:disabled}'
72 node: baremetal-deploy
79 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
80 description: 'PDF file to use for deployment. DO NOT MODIFY!'
83 default: '{idf}/${{NODE_NAME}}-idf.yml'
84 description: 'IDF file to use for deployment. DO NOT MODIFY!'
87 default: 'baremetal-deploy'
88 description: 'Type of the slave'
106 sudo chown -R $USER:$USER $WORKSPACE || exit 1
107 # offline nodes can not resolve Nordix Artifactory and Gerrit
108 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
109 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
110 sudo sed -i 's/^search/# search/' /etc/resolv.conf
111 sudo bash -c "cat << EOF >> /etc/hosts
113 91.106.198.25 artifactory.nordix.org
114 91.106.198.142 gerrit.nordix.org
115 86.107.242.50 fra1.citycloud.com
118 # we need to get rid of search domain as well
119 sudo sed -i 's/^search/# search/' /etc/resolv.conf
124 url: https://gerrit.nordix.org/infra/engine.git
131 - description-setter:
132 description: $DEPLOY_SCENARIO
133 - 'download-artifact-macro'
135 name: "Offline Deployment on Baremetal using {deploy-scenario}"
136 condition: SUCCESSFUL
137 execution-type: PARALLEL
139 - name: 'kubernetes-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
140 current-parameters: true
142 node-parameters: true
143 kill-phase-on: FAILURE
146 name: Functional Testing
149 - name: 'kubernetes-release-{environment-type}-functest-{distro}-baremetal-{stream}'
150 current-parameters: true
152 node-parameters: true
153 kill-phase-on: FAILURE
156 name: Platform Benchmarking
159 - name: 'kubernetes-release-{environment-type}-yardstick-{distro}-baremetal-{stream}'
160 current-parameters: true
162 node-parameters: true
163 kill-phase-on: FAILURE
167 name: 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
169 disabled: '{obj:disabled}'
174 default: '{execution-mode}'
175 description: 'Execution mode'
178 default: 'https://gerrit.nordix.org/infra/test.git'
179 description: 'URL to clone the test repo from'
183 description: 'Test framework to use'
187 description: 'Test suite to run'
189 name: YARDSTICK_DISPATCHER
191 description: 'Dispatcher to use for Yardstick reporting'
202 timeout: '{build-timeout}'
204 - fix-workspace-permissions
205 - credentials-binding:
207 credential-id: '{openrc-credentials-file}'
208 variable: OPENRC_FILE
211 - description-setter:
212 description: $DEPLOY_SCENARIO