aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-03-13 22:31:33 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-03-13 22:31:33 +0530
commitfff8bc66add66f74f54127b129a9decac94d8528 (patch)
treeeb9893df21b16fa8fe440d3e57d84e51e70d7f57
parent74edd4da0f58cf559914d6e467f357ed6fe8d2f3 (diff)
downloadl-a-b-VPS-fff8bc66add66f74f54127b129a9decac94d8528.tar.gz
Revert "Avoid cleaning directory between jobs"
This reverts commit 02a1298d169112513087cad37c1b865d82e22c61.
-rwxr-xr-xnode/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/node/build b/node/build
index c628de1..59f5c46 100755
--- a/node/build
+++ b/node/build
@@ -61,6 +61,16 @@ if [ -n "$BUILD_CONFIG_REPO" ]; then
source /var/run/build-tools/build-config
fi
+
+# Stopgap measure to cleanup environment on instances reused for different jobs
+mount | grep -E "^tmpfs on .+workspace/" | awk ' {print $3}' | xargs --no-run-if-empty -n1 umount
+
+umount build/out/target || true
+umount build/out || true
+umount build || true
+rm -rf build
+mkdir build
+
ramdisk_size=$(get_ramdisk_size $2)
if [ -z "$ramdisk_size" ]; then