From 2b40835c82cd76313f02aec0d6baf95ab7ff7ed6 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Fri, 6 Mar 2020 17:05:44 +0100 Subject: [PATCH] Send build path to apply-workloads We need to run it with sudo because previous commands were also with sudo and there are permission problems if not. But if we run with sudo installer tries to read kubeconfig from /root/, not from /home/jenkins, and it fails. So passing the build path pointing to the right home. Signed-off-by: Yolanda Robla Change-Id: I8aff76b7ece9e89258990c699b7fb36f8c70fb80 --- ci/kni_deploy_libvirt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/kni_deploy_libvirt.sh b/ci/kni_deploy_libvirt.sh index ab2da52..2141a5b 100755 --- a/ci/kni_deploy_libvirt.sh +++ b/ci/kni_deploy_libvirt.sh @@ -75,7 +75,7 @@ echo "metadata.json for removing cluster" sudo cat $HOME/.kni/${SITE_NAME}/final_manifests/metadata.json echo "Cluster successfully deployed! Start applying workloads" -sudo -E ./knictl apply_workloads ${SITE_NAME} 2>&1 | tee ${WORKSPACE}/libvirt_workloads.log +sudo -E ./knictl apply_workloads ${SITE_NAME} --build_path $HOME 2>&1 | tee ${WORKSPACE}/libvirt_workloads.log STATUS=$? if [ $STATUS -ne 0 ]; then -- 2.16.6