浏览代码

HUE-16. Provide a way to tell hudson.sh to skip cleaning the checkout.

Philip Zeyliger 15 年之前
父节点
当前提交
3f4eb37d34
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      tools/scripts/hudson.sh

+ 9 - 3
tools/scripts/hudson.sh

@@ -25,9 +25,15 @@ export REPO_TRACE=1
 
 . $BINDIR/build-functions
 
-git clean -xdf
-rm -rf ext
-git reset --hard HEAD
+# Use $SKIP_CLEAN if the cleaning is done outside of this script.
+if [ -z "$SKIP_CLEAN" ]; then
+  echo "Cleaning repo."
+  git clean -xdf
+  rm -rf ext
+  git reset --hard HEAD
+else
+  echo "Skipping cleaning of repo."
+fi
 
 build_hadoop