Update the Qemu-build to source in helper script
Qemu build script will now call in the kubernetes helper if launch
is set to pod or job. To satisfy this update, added new templates
to launch the container into kubernetes cluster as a job or a pod.
In addition added the default variables for the template that are not
defined in the qemu-build.sh script.
Change-Id: I92fee4c6a6c2e734f840d16af026afbbab4f3fb1
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>
diff --git a/qemu-build.sh b/qemu-build.sh
index b5bbfec..56a7483 100755
--- a/qemu-build.sh
+++ b/qemu-build.sh
@@ -138,7 +138,7 @@
exit 1
fi
mountqemu="-v ""${qemudir}"":""${qemudir}"" "
- if [[ "${qemudir}" = "${HOME}/"* || "${qemudir}" = "${HOME}" ]];then
+ if [[ "${qemudir}" = "${HOME}/"* || "${qemudir}" = "${HOME}" ]]; then
mountqemu=""
fi
docker run \
@@ -149,7 +149,8 @@
${mountqemu} \
-t ${imgname} \
${WORKSPACE}/build.sh
-
+elif [[ "${launch}" == "pod" || "${launch}" == "job" ]]; then
+ . ./kubernetes/kubernetes-launch.sh QEMU-build true true
else
echo "Launch Parameter is invalid"
fi