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}-.*'
73 - fix-workspace-permissions
84 default: 'xci-virtual'
86 name: OPENSTACK_OSA_VERSION
89 name: CLEAN_DIB_IMAGES
93 default: 'https://git.openstack.org/openstack/$PROJECT'
94 description: 'Git URL to use on this Jenkins Slave'
98 description: "Built on $NODE_NAME"
101 condition: SUCCESSFUL
103 - name: 'xci-osa-periodic-{distro}-deploy-{type}-{stream}'
104 current-parameters: true
105 predefined-parameters: |
107 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
108 OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
109 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
111 node-parameters: true
112 kill-phase-on: FAILURE
117 condition: SUCCESSFUL
119 - name: 'xci-osa-periodic-{distro}-healthcheck-{type}-{stream}'
120 current-parameters: true
121 predefined-parameters: |
123 DEPLOY_SCENARIO=os-nosdn-nofeature-noha
124 OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
125 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
127 FUNCTEST_TIER=healthcheck
129 node-parameters: true
134 name: 'xci-osa-periodic-{distro}-{phase}-{type}-{stream}'
143 use-build-blocker: true
145 - '.*-bifrost-verify-.*'
146 - '.*-bifrost-periodic-.*'
157 name: DEPLOY_SCENARIO
158 default: 'os-nosdn-nofeature-noha'
160 name: OPENSTACK_OSA_VERSION
166 name: FUNCTEST_SUITE_NAME
167 default: 'healthcheck'
172 name: CLEAN_DIB_IMAGES
179 default: 'https://git.openstack.org/openstack/$PROJECT'
180 description: 'Git URL to use on this Jenkins Slave'
186 - fix-workspace-permissions
192 - description-setter:
193 description: "Built on $NODE_NAME"
194 - 'xci-osa-periodic-{phase}-macro'
196 # -------------------------------
198 # -------------------------------
200 name: 'xci-osa-periodic-deploy-macro'
207 # The start-new-vm.sh script will copy the entire releng-xci directory
208 # so lets prepare the test script now so it can be copied by the script.
209 # Please do not move it elsewhere or you would have to move it to the VM
211 cat > xci_test.sh<<EOF
213 export DISTRO=$DISTRO
214 export DEPLOY_SCENARIO=$DEPLOY_SCENARIO
215 export OPENSTACK_OSA_VERSION=$OPENSTACK_OSA_VERSION
216 export FUNCTEST_MODE=$FUNCTEST_MODE
217 export FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
218 export XCI_FLAVOR=$XCI_FLAVOR
219 export CORE_OPENSTACK_INSTALL=true
220 export CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
221 export OPNFV_RELENG_DEV_PATH=/home/devuser/releng-xci/
222 export INSTALLER_TYPE=$INSTALLER_TYPE
223 export GIT_BASE=$GIT_BASE
224 export JENKINS_HOME=$JENKINS_HOME
229 chmod a+x xci_test.sh
231 export XCI_BUILD_CLEAN_VM_OS=false
232 export XCI_UPDATE_CLEAN_VM_OS=true
234 ./xci/scripts/vm/start-new-vm.sh $DISTRO
238 ssh -F $HOME/.ssh/${DISTRO}-xci-vm-config ${DISTRO}_xci_vm "cd releng-xci && ./xci_test.sh"
242 name: 'xci-osa-periodic-healthcheck-macro'
251 sudo virsh destroy ${DISTRO}_xci_vm || true
252 sudo virsh undefine ${DISTRO}_xci_vm || true
254 # this will be enabled once the xci is prepared
256 # name: 'xci-verify-healthcheck-macro'
259 # !include-raw: ../../utils/fetch_os_creds.sh
261 # !include-raw: ../functest/functest-alpine.sh