Browse Source

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

Philip Zeyliger 15 năm trước cách đây
mục cha
commit
3f4eb37d34
1 tập tin đã thay đổi với 9 bổ sung3 xóa
  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