Skip to content

Commit

Permalink
[release scripts] Update scripts for 0.9.0-milestone1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Apr 3, 2015
1 parent 189001d commit b8bb762
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions tools/create_release_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
# https://github.com/apache/spark/blob/master/dev/create-release/create-release.sh
#

# Added by rmetzger
echo "Please make sure to use java 6 OPENJDK (not oracle) to build the release binaries"
exit 1

CURR_DIR=`pwd`
if [[ `basename $CURR_DIR` != "tools" ]] ; then
Expand Down Expand Up @@ -106,6 +103,20 @@ make_binary_release() {
cd flink-$RELEASE_VERSION-bin-$NAME
# make distribution
$MVN clean package $FLAGS -DskipTests

# Check that the uberjar is not too big
UBERJAR=`find . | grep flink-dist | head -n 1`
if [ -z "$UBERJAR" ] ; then
echo "Uberjar not found. Assuming failed build";
else
jar tf $UBERJAR | wc -l > num_files_in_uberjar
NUM_FILES_IN_UBERJAR=`cat num_files_in_uberjar`
echo "Files in uberjar: $NUM_FILES_IN_UBERJAR. Uberjar: $UBERJAR"
if [ "$NUM_FILES_IN_UBERJAR" -ge "65536" ] ; then
echo "The number of files in the uberjar ($NUM_FILES_IN_UBERJAR) exceeds the maximum number of possible files for Java 6 (65536)"
exit 1
fi
fi
cd flink-dist/target/flink-$RELEASE_VERSION-bin/
tar cvzf flink-$RELEASE_VERSION-bin-$NAME.tgz flink-$RELEASE_VERSION
if [ -d "flink-yarn-$RELEASE_VERSION" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion tools/travis_mvn_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ upload_artifacts_s3
cd ../../


UBERJAR=`find . | grep uberjar | head -n 1`
UBERJAR=`find . | grep flink-dist | head -n 1`
if [ -z "$UBERJAR" ] ; then
echo "Uberjar not found. Assuming failed build";
else
Expand Down

0 comments on commit b8bb762

Please sign in to comment.