3 name: 'opnfv-osa-periodic'
5 project: openstack-ansible
6 # -------------------------------
8 # -------------------------------
12 # -------------------------------
14 # -------------------------------
22 # -------------------------------
24 # -------------------------------
27 # -------------------------------
28 # periodic deploy & test phases
29 # -------------------------------
33 # -------------------------------
35 # -------------------------------
37 - 'xci-osa-periodic-{distro}-{type}-{stream}'
38 - 'xci-osa-periodic-{distro}-{phase}-{type}-{stream}'
39 # -------------------------------
41 # -------------------------------
43 name: 'xci-osa-periodic-{distro}-{type}-{stream}'
45 project-type: multijob
47 disabled: '{obj:disabled}'
54 use-build-blocker: true
56 - 'xci-verify-{distro}-.*'
57 - 'bifrost-verify-{distro}-.*'
58 - 'bifrost-periodic-{distro}-.*'
59 - 'xci-osa-verify-{distro}-.*'
60 - 'xci-osa-periodic-{distro}-.*'
61 blocking-level: 'NODE'
73 - fix-workspace-permissions
84 default: 'xci-virtual'
86 node-eligibility: 'ignore-offline'
88 name: OPENSTACK_OSA_VERSION
91 name: CLEAN_DIB_IMAGES
95 default: 'https://git.openstack.org/openstack/$PROJECT'
96 description: 'Git URL to use on this Jenkins Slave'
100 description: "Built on $NODE_NAME"
103 condition: SUCCESSFUL
105 - name: 'xci-osa-periodic-{distro}-deploy-{type}-{stream}'
106 current-parameters: true
107 predefined-parameters: |
109 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
110 OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
111 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
113 node-parameters: true
114 kill-phase-on: FAILURE
119 condition: SUCCESSFUL
121 - name: 'xci-osa-periodic-{distro}-healthcheck-{type}-{stream}'
122 current-parameters: true
123 predefined-parameters: |
125 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
126 OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
127 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
129 FUNCTEST_TIER=healthcheck
131 node-parameters: true
136 name: 'xci-osa-periodic-{distro}-{phase}-{type}-{stream}'
145 use-build-blocker: true
147 - '.*-bifrost-verify-.*'
148 - '.*-bifrost-periodic-.*'
149 blocking-level: 'NODE'
159 name: DEPLOY_SCENARIO
160 default: 'os-nosdn-nofeature-noha'
162 name: OPENSTACK_OSA_VERSION
168 name: FUNCTEST_SUITE_NAME
169 default: 'healthcheck'
174 name: CLEAN_DIB_IMAGES
181 default: 'https://git.openstack.org/openstack/$PROJECT'
182 description: 'Git URL to use on this Jenkins Slave'
188 - fix-workspace-permissions
194 - description-setter:
195 description: "Built on $NODE_NAME"
196 - 'xci-osa-periodic-{phase}-macro'
198 # -------------------------------
200 # -------------------------------
202 name: 'xci-osa-periodic-deploy-macro'
209 # The start-new-vm.sh script will copy the entire releng-xci directory
210 # so lets prepare the test script now so it can be copied by the script.
211 # Please do not move it elsewhere or you would have to move it to the VM
213 cat > xci_test.sh<<EOF
215 export DISTRO=$DISTRO
216 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
217 export OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
218 export FUNCTEST_MODE=$FUNCTEST_MODE
219 export FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
220 export XCI_FLAVOR=$XCI_FLAVOR
221 export CORE_OPENSTACK_INSTALL=true
222 export CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
223 export OPNFV_RELENG_DEV_PATH=/home/devuser/releng-xci/
224 export INSTALLER_TYPE=$INSTALLER_TYPE
225 export GIT_BASE=$GIT_BASE
226 export JENKINS_HOME=$JENKINS_HOME
231 chmod a+x xci_test.sh
233 export XCI_BUILD_CLEAN_VM_OS=false
234 export XCI_UPDATE_CLEAN_VM_OS=true
236 ./xci/scripts/vm/start-new-vm.sh $DISTRO
240 ssh -F $HOME/.ssh/${DISTRO}-xci-vm-config ${DISTRO}_xci_vm "cd releng-xci && ./xci_test.sh"
244 name: 'xci-osa-periodic-healthcheck-macro'
253 sudo virsh destroy ${DISTRO}_xci_vm || true
254 sudo virsh undefine ${DISTRO}_xci_vm || true
256 # this will be enabled once the xci is prepared
258 # name: 'xci-verify-healthcheck-macro'
261 # !include-raw: ../../utils/fetch_os_creds.sh
263 # !include-raw: ../functest/functest-alpine.sh