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: 'offline-deployment'
80 description: 'Engine execution mode'
83 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
84 description: 'PDF file to use for deployment. DO NOT MODIFY!'
87 default: '{idf}/${{NODE_NAME}}-idf.yml'
88 description: 'IDF file to use for deployment. DO NOT MODIFY!'
91 default: 'baremetal-deploy'
92 description: 'Type of the slave'
110 sudo chown -R $USER:$USER $WORKSPACE || exit 1
111 # offline nodes can not resolve Nordix Artifactory and Gerrit
112 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
113 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
114 sudo sed -i 's/^search/# search/' /etc/resolv.conf
115 sudo bash -c "cat << EOF >> /etc/hosts
117 91.106.198.25 artifactory.nordix.org
118 91.106.198.142 gerrit.nordix.org
119 86.107.242.50 fra1.citycloud.com
122 # we need to get rid of search domain as well
123 sudo sed -i 's/^search/# search/' /etc/resolv.conf
128 url: https://gerrit.nordix.org/infra/engine.git
135 - description-setter:
136 description: $DEPLOY_SCENARIO
137 - 'download-artifact-macro'
139 name: "Offline Deployment on Baremetal using {deploy-scenario}"
140 condition: SUCCESSFUL
141 execution-type: PARALLEL
143 - name: 'kubernetes-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
144 current-parameters: true
146 node-parameters: true
147 kill-phase-on: FAILURE
150 name: Functional Testing
153 - name: 'kubernetes-release-{environment-type}-functest-{distro}-baremetal-{stream}'
154 current-parameters: true
156 node-parameters: true
157 kill-phase-on: FAILURE
160 name: Platform Benchmarking
163 - name: 'kubernetes-release-{environment-type}-yardstick-{distro}-baremetal-{stream}'
164 current-parameters: true
166 node-parameters: true
167 kill-phase-on: FAILURE
171 name: 'kubernetes-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
173 disabled: '{obj:disabled}'
178 default: '{execution-mode}'
179 description: 'Execution mode'
182 default: 'https://gerrit.nordix.org/infra/test.git'
183 description: 'URL to clone the test repo from'
187 description: 'Test framework to use'
191 description: 'Test suite to run'
193 name: YARDSTICK_DISPATCHER
195 description: 'Dispatcher to use for Yardstick reporting'
206 timeout: '{build-timeout}'
208 - fix-workspace-permissions
209 - credentials-binding:
211 credential-id: '{openrc-credentials-file}'
212 variable: OPENRC_FILE
215 - description-setter:
216 description: $DEPLOY_SCENARIO