jjb: xci: xci-verify-jobs: Fix clean VM job 71/43171/5
authorMarkos Chandras <mchandras@suse.de>
Tue, 26 Sep 2017 12:46:49 +0000 (13:46 +0100)
committerMarkos Chandras <mchandras@suse.de>
Tue, 26 Sep 2017 14:00:11 +0000 (15:00 +0100)
According to
https://docs.openstack.org/infra/jenkins-job-builder/definition.html#macro-notes
we only need to use ${{x}} when the macro has parameters. However, none
of our macros has so the correct way to use the shell variable is ${x}.
Moreover, we set the missing execute bit in the jenkins test script.
Additionally, we fix the OPNFV_RELENG_DEV_PATH parameter to point to the
directory inside the VM where the releng-xci repo is located.
Finally we fix the parent directory in which the test is executed.

Change-Id: Ic6157caa5042274a3a3d0de276bdacc15a90a82d
Signed-off-by: Markos Chandras <mchandras@suse.de>
jjb/xci/xci-verify-jobs.yml

index 59fdf84..0e79bd9 100644 (file)
             export FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
             export XCI_FLAVOR=$XCI_FLAVOR
             export CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
-            export OPNFV_RELENG_DEV_PATH=$OPNFV_RELENG_DEV_PATH
+            export OPNFV_RELENG_DEV_PATH=/home/devuser/releng-xci/
             export INSTALLER_TYPE=$INSTALLER_TYPE
             export GIT_BASE=$GIT_BASE
             export JENKINS_HOME=$JENKINS_HOME
 
-            cd releng-xci/xci
-            ./xci-deloy.sh
+            cd xci
+            ./xci-deploy.sh
             EOF
+            chmod a+x xci_test.sh
 
             ./xci/scripts/vm/start-new-vm.sh $DISTRO
         - shell: |
                 exit 0
             fi
 
-            ssh ${{DISTRO}}_xci_vm "cd releng-xci && ./xci_test.sh"
+            ssh ${DISTRO}_xci_vm "cd releng-xci && ./xci_test.sh"
 
 
 - builder:
                 exit 0
             fi
 
-            sudo virsh destroy ${{DISTRO}}_xci_vm
-            sudo virsh undefine ${{DISTRO}}_xci_vm
+            sudo virsh destroy ${DISTRO}_xci_vm
+            sudo virsh undefine ${DISTRO}_xci_vm
 
 # this will be enabled once the xci is prepared
 #- builder: