From 8413de5db0afacf6713a413e3a6dee5c923cc617 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 9 Mar 2021 21:15:31 +0100 Subject: [PATCH] ci/bare-metal: fix fastboot Only copy results from NFS if BM_FASTBOOT_NFSROOT is set. Signed-off-by: Christian Gmeiner Reviewed-by: Eric Anholt Part-of: --- .gitlab-ci/bare-metal/fastboot.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci/bare-metal/fastboot.sh b/.gitlab-ci/bare-metal/fastboot.sh index eea2fd55bd5..717a83b343a 100755 --- a/.gitlab-ci/bare-metal/fastboot.sh +++ b/.gitlab-ci/bare-metal/fastboot.sh @@ -155,8 +155,10 @@ $BM/fastboot_run.py \ ret=$? set -e -# Bring artifacts back from the NFS dir to the build dir where gitlab-runner -# will look for them. -cp -Rp /nfs/results/. results/ +if [ -n "$BM_FASTBOOT_NFSROOT" ]; then + # Bring artifacts back from the NFS dir to the build dir where gitlab-runner + # will look for them. + cp -Rp /nfs/results/. results/ +fi exit $ret