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-calico-nofeature'
40 deploy-scenario: 'k8-calico-nofeature'
48 execution-mode: offline-deployment
49 pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
50 idf: 'file:///opt/engine/offline/git/hwconfig/pods'
51 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
56 execution-mode: offline-deployment
59 execution-mode: online-test
62 execution-mode: online-test
65 - 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
66 - 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
69 name: 'kubernetes-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
71 project-type: multijob
73 disabled: '{obj:disabled}'
75 node: baremetal-deploy
82 default: 'offline-deployment'
83 description: 'Engine execution mode'
86 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
87 description: 'PDF file to use for deployment. DO NOT MODIFY!'
90 default: '{idf}/${{NODE_NAME}}-idf.yml'
91 description: 'IDF file to use for deployment. DO NOT MODIFY!'
94 default: 'baremetal-deploy'
95 description: 'Type of the slave'
113 sudo chown -R $USER:$USER $WORKSPACE || exit 1
114 # offline nodes can not resolve Nordix Artifactory and Gerrit
115 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
116 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
117 sudo sed -i 's/^search/# search/' /etc/resolv.conf
118 sudo bash -c "cat << EOF >> /etc/hosts
120 91.106.198.25 artifactory.nordix.org
121 91.106.198.142 gerrit.nordix.org
122 86.107.242.50 fra1.citycloud.com
125 # we need to get rid of search domain as well
126 sudo sed -i 's/^search/# search/' /etc/resolv.conf
131 url: https://gerrit.nordix.org/infra/engine.git
138 - description-setter:
139 description: $DEPLOY_SCENARIO
140 - 'download-artifact-macro'
142 name: "Offline Deployment on Baremetal using {deploy-scenario}"
143 condition: SUCCESSFUL
144 execution-type: PARALLEL
146 - name: 'kubernetes-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
147 current-parameters: true
149 node-parameters: true
150 kill-phase-on: FAILURE
153 name: Functional Testing
156 - name: 'kubernetes-release-{environment-type}-functest-{distro}-baremetal-{stream}'
157 current-parameters: true
159 node-parameters: true
160 kill-phase-on: FAILURE
163 name: Platform Benchmarking
166 - name: 'kubernetes-release-{environment-type}-yardstick-{distro}-baremetal-{stream}'
167 current-parameters: true
169 node-parameters: true
170 kill-phase-on: FAILURE
174 name: 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
176 disabled: '{obj:disabled}'
181 default: '{execution-mode}'
182 description: 'Execution mode'
185 default: 'https://gerrit.nordix.org/infra/test.git'
186 description: 'URL to clone the test repo from'
190 description: 'Test framework to use'
194 description: 'Test suite to run'
196 name: YARDSTICK_DISPATCHER
198 description: 'Dispatcher to use for Yardstick reporting'
209 timeout: '{build-timeout}'
211 - fix-workspace-permissions
212 - credentials-binding:
214 credential-id: '{openrc-credentials-file}'
215 variable: OPENRC_FILE
218 - description-setter:
219 description: $DEPLOY_SCENARIO