hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject [incubator-hudi] branch release-0.5.1 updated: [MINOR] Change deploy_staging_jars script to take in scala version (#1269)
Date Wed, 22 Jan 2020 06:21:51 GMT
This is an automated email from the ASF dual-hosted git repository.

leesf pushed a commit to branch release-0.5.1
in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git


The following commit(s) were added to refs/heads/release-0.5.1 by this push:
     new 76d9561  [MINOR] Change deploy_staging_jars script to take in scala version (#1269)
76d9561 is described below

commit 76d956165d299b4d107f028d5686a6d49fb7db7a
Author: Balaji Varadarajan <varadarb@uber.com>
AuthorDate: Tue Jan 21 22:19:47 2020 -0800

    [MINOR] Change deploy_staging_jars script to take in scala version (#1269)
---
 scripts/release/deploy_staging_jars.sh | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/scripts/release/deploy_staging_jars.sh b/scripts/release/deploy_staging_jars.sh
index 5867f9c..5493dc4 100755
--- a/scripts/release/deploy_staging_jars.sh
+++ b/scripts/release/deploy_staging_jars.sh
@@ -34,11 +34,25 @@ if [[ `basename $CURR_DIR` != "scripts" ]] ; then
   exit 1
 fi
 
+if [[ $# -lt 1 ]]; then
+    echo "This script will deploy artifacts to staging repositories"
+    echo "There is one param required:"
+    echo "--scala_version=\${SCALA_VERSION}"
+    exit
+else
+    for param in "$@"
+    do
+	if [[ $param =~ --scala_version\=(2\.1[1-2]) ]]; then
+		SCALA_VERSION=${BASH_REMATCH[1]}
+	fi
+    done
+fi
+
 ###########################
 
 cd ..
 
-echo "Deploying to repository.apache.org"
+echo "Deploying to repository.apache.org with scala version ${SCALA_VERSION}"
 
-COMMON_OPTIONS="-Prelease -DskipTests -DretryFailedDeploymentCount=10 -DdeployArtifacts=true"
-$MVN clean deploy $COMMON_OPTIONS
+COMMON_OPTIONS="-Pscala-${SCALA_VERSION} -Prelease -DskipTests -DretryFailedDeploymentCount=10
-DdeployArtifacts=true"
+#$MVN clean deploy $COMMON_OPTIONS


Mime
View raw message