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 - 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
69 - 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
72 name: 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
74 project-type: multijob
76 disabled: '{obj:disabled}'
78 node: baremetal-deploy
85 default: 'offline-deployment'
86 description: 'Engine execution mode'
89 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
90 description: 'PDF file to use for deployment. DO NOT MODIFY!'
93 default: '{idf}/${{NODE_NAME}}-idf.yml'
94 description: 'IDF file to use for deployment. DO NOT MODIFY!'
97 default: 'baremetal-deploy'
98 description: 'Type of the slave'
116 sudo chown -R $USER:$USER $WORKSPACE || exit 1
117 # offline nodes can not resolve Nordix Artifactory and Gerrit
118 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
119 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
120 sudo sed -i 's/^search/# search/' /etc/resolv.conf
121 sudo bash -c "cat << EOF >> /etc/hosts
123 91.106.198.25 artifactory.nordix.org
124 91.106.198.142 gerrit.nordix.org
125 86.107.242.50 fra1.citycloud.com
128 # we need to get rid of search domain as well
129 sudo sed -i 's/^search/# search/' /etc/resolv.conf
134 url: https://gerrit.nordix.org/infra/engine.git
141 - description-setter:
142 description: $DEPLOY_SCENARIO
143 - 'download-deploy-artifact-macro'
145 name: "Offline Deployment on Baremetal using {deploy-scenario}"
146 condition: SUCCESSFUL
147 execution-type: PARALLEL
149 - name: 'kubernetes-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
150 current-parameters: true
152 node-parameters: true
153 kill-phase-on: FAILURE
156 name: Functional Testing
159 - name: 'kubernetes-release-{environment-type}-functest-{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