HADOOP-11721. switch jenkins patch tester to use git clean instead of mvn clean (temp commit)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a89b087c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a89b087c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a89b087c Branch: refs/heads/HDFS-7836 Commit: a89b087c45e549e1f5b5fc953de4657fcbb97195 Parents: 7179f94 Author: Vinayakumar B <vinayakum...@apache.org> Authored: Tue Mar 17 21:39:14 2015 +0530 Committer: Vinayakumar B <vinayakum...@apache.org> Committed: Tue Mar 17 21:39:14 2015 +0530 ---------------------------------------------------------------------- dev-support/test-patch.sh | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/a89b087c/dev-support/test-patch.sh ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index b0fbb80..574a4fd 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