Skip to content

Commit cc72e9b

Browse files
committed
HADOOP-11307. create-release script should run git clean first (kasha)
(cherry picked from commit 4fb96db) (cherry picked from commit c8b7146)
1 parent 287d78f commit cc72e9b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

dev-support/create-release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ RC_LABEL=$1
4747
# Extract Hadoop version from POM
4848
HADOOP_VERSION=`cat pom.xml | grep "<version>" | head -1 | sed 's|^ *<version>||' | sed 's|</version>.*$||'`
4949

50+
# Setup git
51+
GIT=${GIT:-git}
52+
5053
echo
5154
echo "*****************************************************************"
5255
echo
@@ -70,6 +73,9 @@ fi
7073

7174
ARTIFACTS_DIR="target/artifacts"
7275

76+
# git clean to clear any remnants from previous build
77+
run ${GIT} clean -xdf
78+
7379
# mvn clean for sanity
7480
run ${MVN} clean
7581

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Release 2.5.2 - 2014-11-19
1616

1717
HADOOP-11260. Patch up Jetty to disable SSLv3. (Mike Yoder via kasha)
1818

19+
HADOOP-11307. create-release script should run git clean first. (kasha)
20+
1921

2022
Release 2.5.1 - 2014-09-05
2123

0 commit comments

Comments
 (0)