From 6965038dee39edd656a0d30557049c8c3866cc01 Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Fri, 3 Nov 2017 11:27:50 -0400 Subject: [PATCH 1/2] Add debug information to troubleshoot jenkins issues Signed-off-by: Derek Straka --- scripts/cleanup-env.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/cleanup-env.sh b/scripts/cleanup-env.sh index 61c7573..d2d5729 100755 --- a/scripts/cleanup-env.sh +++ b/scripts/cleanup-env.sh @@ -1,8 +1,14 @@ #!/bin/bash -x +sudo fuser -m `pwd`/build + # Only attempt to unmount if the directory is already mounted if mountpoint -q `pwd`/build; then - sudo umount build + sudo umount `pwd`/build fi +sudo fuser -m `pwd`/build + +ps -ef + exit 0 From ab57e94e2cc9c88d1170bade906585d2779e0730 Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Fri, 3 Nov 2017 11:47:26 -0400 Subject: [PATCH 2/2] Don't bother erroring out if the rsync fails Signed-off-by: Derek Straka --- scripts/publish-build-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish-build-cache.sh b/scripts/publish-build-cache.sh index 871d97d..e3a0a18 100755 --- a/scripts/publish-build-cache.sh +++ b/scripts/publish-build-cache.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -x if [[ $# -lt 1 ]]; then echo "No Yocto branch specified, defaulting to master"