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: 'openstack-deploy-test'
23 project: 'openstack-deploy-test'
28 deploy-scenario: 'os-nosdn-nofeature'
31 deploy-scenario: 'os-nosdn-nofeature'
39 execution-mode: offline-deployment
40 pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
41 idf: 'file:///opt/engine/offline/git/hwconfig/pods'
42 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
47 execution-mode: offline-deployment
50 execution-mode: online-test
53 execution-mode: online-test
56 - 'openstack-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
57 - 'openstack-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
60 name: 'openstack-release-{environment-type}-deploy-test-{distro}-baremetal-{stream}'
62 project-type: multijob
64 disabled: '{obj:disabled}'
66 node: baremetal-deploy
73 default: 'offline-deployment'
74 description: 'Engine execution mode'
77 default: '{pdf}/${{NODE_NAME}}-pdf.yml'
78 description: 'PDF file to use for deployment. DO NOT MODIFY!'
81 default: '{idf}/${{NODE_NAME}}-idf.yml'
82 description: 'IDF file to use for deployment. DO NOT MODIFY!'
85 default: 'baremetal-deploy'
86 description: 'Type of the slave'
104 sudo chown -R $USER:$USER $WORKSPACE || exit 1
105 # offline nodes can not resolve Nordix Artifactory and Gerrit
106 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
107 echo "Info : Offline deployment. Adding City OpenStack Endpoint, Nordix Artifactory and Gerrit Public IP to /etc/hosts"
108 sudo sed -i 's/^search/# search/' /etc/resolv.conf
109 sudo bash -c "cat << EOF >> /etc/hosts
111 91.106.198.25 artifactory.nordix.org
112 91.106.198.142 gerrit.nordix.org
113 86.107.242.50 fra1.citycloud.com
116 # we need to get rid of search domain as well
117 sudo sed -i 's/^search/# search/' /etc/resolv.conf
122 url: https://gerrit.nordix.org/infra/engine.git
129 - description-setter:
130 description: $DEPLOY_SCENARIO
131 - 'download-artifact-macro'
133 name: "Offline Deployment on Baremetal using {deploy-scenario}"
134 condition: SUCCESSFUL
135 execution-type: PARALLEL
137 - name: 'openstack-release-{environment-type}-deploy-{distro}-baremetal-{stream}'
138 current-parameters: true
140 node-parameters: true
141 kill-phase-on: FAILURE
144 name: Functional Testing
147 - name: 'openstack-release-{environment-type}-functest-{distro}-baremetal-{stream}'
148 current-parameters: true
150 node-parameters: true
151 kill-phase-on: FAILURE
154 name: Platform Benchmarking
157 - name: 'openstack-release-{environment-type}-yardstick-{distro}-baremetal-{stream}'
158 current-parameters: true
160 node-parameters: true
161 kill-phase-on: FAILURE
165 name: 'openstack-release-{environment-type}-{phase}-{distro}-baremetal-{stream}'
167 disabled: '{obj:disabled}'
172 default: '{execution-mode}'
173 description: 'Execution mode'
176 default: 'https://gerrit.nordix.org/infra/test.git'
177 description: 'URL to clone the test repo from'
181 description: 'Test framework to use'
185 description: 'Test suite to run'
187 name: YARDSTICK_DISPATCHER
189 description: 'Dispatcher to use for Yardstick reporting'
200 timeout: '{build-timeout}'
202 - fix-workspace-permissions
203 - credentials-binding:
205 credential-id: '{openrc-credentials-file}'
206 variable: OPENRC_FILE
209 - description-setter:
210 description: $DEPLOY_SCENARIO