From 3cfa4c0a3b0d479cc9953cc590941cc3e3616d76 Mon Sep 17 00:00:00 2001 From: Graham Whaley Date: Thu, 8 Nov 2018 17:11:42 +0000 Subject: [PATCH] ci: cleanup: pass tests_repo to cleanup scripts The baremetal cleanup scripts use `tests_repo` to find the funcs to call, but that is not currently propagated from the caller. Rather than export or source, let's pass it on the commandline when calling the sub-scripts. Fixes: #897 Signed-off-by: Graham Whaley --- .ci/jenkins_job_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/jenkins_job_build.sh b/.ci/jenkins_job_build.sh index fd5c5477e..005b47036 100755 --- a/.ci/jenkins_job_build.sh +++ b/.ci/jenkins_job_build.sh @@ -57,7 +57,7 @@ if [ "${BAREMETAL}" == true ]; then clean_up_script="${tests_repo_dir}/.ci/${arch}/clean_up_${arch}.sh" if [ -f "${clean_up_script}" ]; then echo "Running baremetal cleanup script for arch ${arch}" - "${clean_up_script}" + tests_repo="${tests_repo}" "${clean_up_script}" else echo "No baremetal cleanup script for arch ${arch}" fi