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