From fff8bc66add66f74f54127b129a9decac94d8528 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Thu, 13 Mar 2014 22:31:33 +0530 Subject: Revert "Avoid cleaning directory between jobs" This reverts commit 02a1298d169112513087cad37c1b865d82e22c61. --- node/build | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3