From 9652e11111685a30f71ef2b3381a897b647b069e Mon Sep 17 00:00:00 2001 From: Jason Moore Date: Wed, 1 May 2019 17:14:26 -0400 Subject: [PATCH] Remove $SRC_DIR so cached builds have files from latest commit --- lib/plugins/TaskRunner/Script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/TaskRunner/Script.js b/lib/plugins/TaskRunner/Script.js index 55daad27..82e52198 100644 --- a/lib/plugins/TaskRunner/Script.js +++ b/lib/plugins/TaskRunner/Script.js @@ -36,8 +36,8 @@ module.exports = class Script extends require('./AbstractPlugin') { 'export PS4=\'\$ \'', // Enables command echoing. 'set -ux', - // Default CWD to $SRC_DIR (create it if it it doesn't exist). - 'mkdir -p $SRC_DIR; cd $SRC_DIR', + // Default CWD to $SRC_DIR (remove for cached builds first, then create it if it it doesn't exist). + 'rm -Rf $SRC_DIR; mkdir -p $SRC_DIR; cd $SRC_DIR', ].concat(script); script = script.join('\n');