zeppelin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mina...@apache.org
Subject zeppelin git commit: [HOTFIX] update release script
Date Mon, 27 Jun 2016 22:29:58 GMT
Repository: zeppelin
Updated Branches:
  refs/heads/branch-0.6 a1f8a17a1 -> b3898368a


[HOTFIX] update release script

### What is this PR for?
- Add sparkr, r profile to netinst release build
- Exit release_publish.sh in case creating staging repository fails

### What type of PR is it?
Hot Fix

### Questions:
* Does the licenses files need update?
* Is there breaking changes for older versions?
* Does this needs documentation?

Author: Mina Lee <minalee@apache.org>

Closes #1098 from minahlee/fix/release_script and squashes the following commits:

bf25d5b [Mina Lee] remove quote to make sed works properly
2fee082 [Mina Lee] Add sparkr, r profile to netinst binary package build

(cherry picked from commit 4cd61db50315df2c388f5e34f73a4880ab5fab8a)
Signed-off-by: Mina Lee <minalee@apache.org>


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

Branch: refs/heads/branch-0.6
Commit: b3898368a718821d5d54b93818614aa3ce438de3
Parents: a1f8a17
Author: Mina Lee <minalee@apache.org>
Authored: Mon Jun 27 15:15:04 2016 -0700
Committer: Mina Lee <minalee@apache.org>
Committed: Mon Jun 27 15:29:52 2016 -0700

----------------------------------------------------------------------
 dev/create_release.sh  | 2 +-
 dev/publish_release.sh | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/b3898368/dev/create_release.sh
----------------------------------------------------------------------
diff --git a/dev/create_release.sh b/dev/create_release.sh
index 2363d90..60fc5bd 100755
--- a/dev/create_release.sh
+++ b/dev/create_release.sh
@@ -103,7 +103,7 @@ function make_binary_release() {
 git_clone
 make_source_package
 make_binary_release all "-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr"
-make_binary_release netinst "-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -pl !alluxio,!angular,!cassandra,!elasticsearch,!file,!flink,!hbase,!ignite,!jdbc,!kylin,!lens,!livy,!markdown,!postgresql,!python,!shell"
+make_binary_release netinst "-Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark -Psparkr -Pr -pl !alluxio,!angular,!cassandra,!elasticsearch,!file,!flink,!hbase,!ignite,!jdbc,!kylin,!lens,!livy,!markdown,!postgresql,!python,!shell"
 
 # remove non release files and dirs
 rm -rf "${WORKING_DIR}/zeppelin"

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/b3898368/dev/publish_release.sh
----------------------------------------------------------------------
diff --git a/dev/publish_release.sh b/dev/publish_release.sh
index e5a4419..8092022 100755
--- a/dev/publish_release.sh
+++ b/dev/publish_release.sh
@@ -82,7 +82,12 @@ function publish_to_maven() {
     "${NEXUS_STAGING}/profiles/${NEXUS_PROFILE}/start")"
   create_ret=$?
   curl_error $create_ret
-  staged_repo_id="$(echo "${out}" | sed -e 's/.*\(orgapachezeppelin-[0-9]\{4\}\).*/\1/')"
+  staged_repo_id="$(echo ${out} | sed -e 's/.*\(orgapachezeppelin-[0-9]\{4\}\).*/\1/')"
+  if [[ -z "${staged_repo_id}" ]]; then
+    echo "Fail to create staging repository"
+    exit 1
+  fi
+
   echo "Created Nexus staging repository: ${staged_repo_id}"
 
   tmp_repo="$(mktemp -d /tmp/zeppelin-repo-XXXXX)"


Mime
View raw message