flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljos...@apache.org
Subject flink git commit: [FLINK-8166] Create hadoop-free binary in release scripts
Date Wed, 29 Nov 2017 11:35:22 GMT
Repository: flink
Updated Branches:
  refs/heads/release-1.4 581bf80f3 -> cd4f048ed


[FLINK-8166] Create hadoop-free binary in release scripts


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/cd4f048e
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/cd4f048e
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/cd4f048e

Branch: refs/heads/release-1.4
Commit: cd4f048ed1cc410eac43151d0c6744fe9a75921f
Parents: 581bf80
Author: Aljoscha Krettek <aljoscha.krettek@gmail.com>
Authored: Wed Nov 29 12:34:31 2017 +0100
Committer: Aljoscha Krettek <aljoscha.krettek@gmail.com>
Committed: Wed Nov 29 12:34:31 2017 +0100

----------------------------------------------------------------------
 tools/releasing/create_binary_release.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/cd4f048e/tools/releasing/create_binary_release.sh
----------------------------------------------------------------------
diff --git a/tools/releasing/create_binary_release.sh b/tools/releasing/create_binary_release.sh
index 3b1508e..82b98a0 100755
--- a/tools/releasing/create_binary_release.sh
+++ b/tools/releasing/create_binary_release.sh
@@ -55,7 +55,11 @@ make_binary_release() {
   SCALA_VERSION=$3
 
   echo "Creating binary release name: $NAME, flags: $FLAGS, SCALA_VERSION: ${SCALA_VERSION}"
-  dir_name="flink-$RELEASE_VERSION-bin-$NAME-scala_${SCALA_VERSION}"
+  if [[ -z $NAME ]]; then
+    dir_name="flink-$RELEASE_VERSION-bin-scala_${SCALA_VERSION}"
+  else
+    dir_name="flink-$RELEASE_VERSION-bin-$NAME-scala_${SCALA_VERSION}"
+  fi
 
   # enable release profile here (to check for the maven version)
   $MVN clean package $FLAGS -DskipTests -Prelease,scala-${SCALA_VERSION} -Dgpg.skip
@@ -78,6 +82,7 @@ cd ..
 
 
 if [ "$SCALA_VERSION" == "none" ] && [ "$HADOOP_VERSION" == "none" ]; then
+  make_binary_release "" "-DwithoutHadoop" "2.11"
   make_binary_release "hadoop24" "-Dhadoop.version=2.4.1" "2.11"
   make_binary_release "hadoop26" "-Dhadoop.version=2.6.5" "2.11"
   make_binary_release "hadoop27" "-Dhadoop.version=2.7.3" "2.11"
@@ -87,6 +92,7 @@ then
   make_binary_release "hadoop2" "-Dhadoop.version=$HADOOP_VERSION" "2.11"
 elif [ "$SCALA_VERSION" != none ] && [ "$HADOOP_VERSION" == "none" ]
 then
+  make_binary_release "" "-DwithoutHadoop" "$SCALA_VERSION"
   make_binary_release "hadoop24" "-Dhadoop.version=2.4.1" "$SCALA_VERSION"
   make_binary_release "hadoop26" "-Dhadoop.version=2.6.5" "$SCALA_VERSION"
   make_binary_release "hadoop27" "-Dhadoop.version=2.7.3" "$SCALA_VERSION"


Mime
View raw message