spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject git commit: Changes to dev release script
Date Mon, 28 Apr 2014 21:01:04 GMT
Repository: spark
Updated Branches:
  refs/heads/master 1d84964bf -> 8421034e7


Changes to dev release script


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

Branch: refs/heads/master
Commit: 8421034e793c0960373a0a1d694ce334ad36e747
Parents: 1d84964
Author: Patrick Wendell <pwendell@gmail.com>
Authored: Mon Apr 28 13:58:42 2014 -0700
Committer: Patrick Wendell <pwendell@gmail.com>
Committed: Mon Apr 28 14:00:53 2014 -0700

----------------------------------------------------------------------
 dev/create-release/create-release.sh | 59 +++++++++++++++++--------------
 1 file changed, 32 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8421034e/dev/create-release/create-release.sh
----------------------------------------------------------------------
diff --git a/dev/create-release/create-release.sh b/dev/create-release/create-release.sh
index f1aa0f8..ae1b415 100755
--- a/dev/create-release/create-release.sh
+++ b/dev/create-release/create-release.sh
@@ -21,47 +21,52 @@
 # Publishes releases to Maven and packages/copies binary release artifacts.
 # Expects to be run in a totally empty directory.
 #
+# Options:
+#  --package-only   only packages an existing release candidate
+#
 # Would be nice to add:
 #  - Send output to stderr and have useful logging in stdout
-#  - Have this use sbt rather than Maven release plug in
 
-GIT_USERNAME=pwendell
-GIT_PASSWORD=XXX
-GPG_PASSPHRASE=XXX
-GIT_BRANCH=branch-0.9
-RELEASE_VERSION=0.9.0-incubating
-RC_NAME=rc2
-USER_NAME=pwendell
+GIT_USERNAME=${GIT_USERNAME:-pwendell}
+GIT_PASSWORD=${GIT_PASSWORD:-XXX}
+GPG_PASSPHRASE=${GPG_PASSPHRASE:-XXX}
+GIT_BRANCH=${GIT_BRANCH:-branch-1.0}
+RELEASE_VERSION=${RELEASE_VERSION:-1.0.0}
+RC_NAME=${RC_NAME:-rc2}
+USER_NAME=${USER_NAME:-pwendell}
 
 set -e
 
 GIT_TAG=v$RELEASE_VERSION-$RC_NAME
 
-# Artifact publishing
-
-git clone https://git-wip-us.apache.org/repos/asf/spark.git -b $GIT_BRANCH
-cd spark
-export MAVEN_OPTS="-Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=1g"
+if [[ ! "$@" =~ --package-only ]]; then
+  echo "Creating and publishing release"
+  # Artifact publishing
+  git clone https://git-wip-us.apache.org/repos/asf/spark.git -b $GIT_BRANCH
+  cd spark
+  export MAVEN_OPTS="-Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=1g"
 
-mvn -Pyarn release:clean
+  mvn -Pyarn release:clean
 
-mvn -DskipTests \
-  -Darguments="-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=${GPG_PASSPHRASE}"
\
-  -Dusername=$GIT_USERNAME -Dpassword=$GIT_PASSWORD \
-  -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 \
-  -Pyarn -Phive -Pspark-ganglia-lgpl\
-  -Dtag=$GIT_TAG -DautoVersionSubmodules=true \
-  --batch-mode release:prepare
+  mvn -DskipTests \
+    -Darguments="-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=${GPG_PASSPHRASE}"
\
+    -Dusername=$GIT_USERNAME -Dpassword=$GIT_PASSWORD \
+    -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 \
+    -Pyarn -Phive -Pspark-ganglia-lgpl\
+    -Dtag=$GIT_TAG -DautoVersionSubmodules=true \
+    --batch-mode release:prepare
 
-mvn -DskipTests \
-  -Darguments="-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=${GPG_PASSPHRASE}"
\
-  -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 \
-  -Pyarn -Phive -Pspark-ganglia-lgpl\
-  release:perform
+  mvn -DskipTests \
+    -Darguments="-DskipTests=true -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -Dgpg.passphrase=${GPG_PASSPHRASE}"
\
+    -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 \
+    -Pyarn -Phive -Pspark-ganglia-lgpl\
+    release:perform
 
-rm -rf spark
+  rm -rf spark
+fi
 
 # Source and binary tarballs
+echo "Packaging release tarballs"
 git clone https://git-wip-us.apache.org/repos/asf/spark.git
 cd spark
 git checkout --force $GIT_TAG


Mime
View raw message