Explorar o código

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

Philip Zeyliger %!s(int64=15) %!d(string=hai) anos
pai
achega
3f4eb37d34
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  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