You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ec...@apache.org on 2014/08/01 00:07:38 UTC
[02/50] [abbrv] git commit: [master] Specify url of repo when
deploying automatically.
[master] Specify url of repo when deploying automatically.
Summary: Specify the repo url and name on the command line when deploying
Test Plan: http://nexus.vip.facebook.com:8181/nexus/content/repositories/libs-snapshots-local/com/facebook/hbase/hbase/3.0.42560-SNAPSHOT/
Reviewers: adela, oozie, jjmaestro
Reviewed By: jjmaestro
Subscribers: hbase-prodeng@, hbase-eng@
Differential Revision: https://phabricator.fb.com/D1354446
Tasks: 4412611
git-svn-id: svn+ssh://tubbs/svnhive/hadoop/branches/titan/VENDOR.hbase/hbase-trunk@42574 e7acf4d4-3532-417f-9e73-7a9ae25a1f51
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2d016097
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2d016097
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2d016097
Branch: refs/heads/0.89-fb
Commit: 2d0160975c0477f063154aa058eba240577de471
Parents: 2c5c9ac
Author: elliott <el...@e7acf4d4-3532-417f-9e73-7a9ae25a1f51>
Authored: Fri May 30 00:05:07 2014 +0000
Committer: Elliott Clark <el...@fb.com>
Committed: Thu Jul 31 14:43:00 2014 -0700
----------------------------------------------------------------------
bin/devSupport/create_release.sh | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/2d016097/bin/devSupport/create_release.sh
----------------------------------------------------------------------
diff --git a/bin/devSupport/create_release.sh b/bin/devSupport/create_release.sh
index 6fd5707..75f9530 100755
--- a/bin/devSupport/create_release.sh
+++ b/bin/devSupport/create_release.sh
@@ -6,8 +6,24 @@ MVNCMD=${MVNCMD:-mvn}
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HBASE_HOME=${DIR}/../../
-VERSION=`${DIR}/generate_version.py --pom ${HBASE_HOME}/pom.xml --svn`
+if [ -d "${HBASE_HOME}/.git" ]; then
+ VERSION=`${DIR}/generate_version.py --pom ${HBASE_HOME}/pom.xml --git_svn`
+else
+ VERSION=`${DIR}/generate_version.py --pom ${HBASE_HOME}/pom.xml --svn`
+fi
+
echo $VERSION
+BASE_REPO=http://nexus.vip.facebook.com:8181/nexus/content/repositories
+
+if [[ $VERSION == *-SNAPSHOT* ]]; then
+ REPO_NAME=libs-snapshots-local
+else
+ REPO_NAME=libs-releases-local
+fi
+
+REPO_URL=${BASE_REPO}/${REPO_NAME}
+
+
$MVNCMD versions:set -DnewVersion=${VERSION}
-$MVNCMD clean package assembly:single deploy -DskipTests
\ No newline at end of file
+$MVNCMD clean package assembly:single deploy -DskipTests -DaltDeploymentRepository=${REPO_NAME}::default::${REPO_URL}