From a89b087c45e549e1f5b5fc953de4657fcbb97195 Mon Sep 17 00:00:00 2001 From: Vinayakumar B Date: Tue, 17 Mar 2015 21:39:14 +0530 Subject: [PATCH] HADOOP-11721. switch jenkins patch tester to use git clean instead of mvn clean (temp commit) --- dev-support/test-patch.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index b0fbb80a8b0..574a4fd7e8a 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -292,6 +292,10 @@ prebuildWithoutPatch () { cd - fi echo "Compiling $(pwd)" + if [[ -d "$(pwd)"/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs ]]; then + echo "Changing permission $(pwd)/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs to avoid broken builds " + chmod +x -R "$(pwd)/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs" + fi echo "$MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess -Ptest-patch > $PATCH_DIR/trunkJavacWarnings.txt 2>&1" $MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess -Ptest-patch > $PATCH_DIR/trunkJavacWarnings.txt 2>&1 if [[ $? != 0 ]] ; then