You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ch...@apache.org on 2019/12/23 06:01:37 UTC
[servicecomb-toolkit] 02/02: [SCB-1660] remove the tagged commit
check
This is an automated email from the ASF dual-hosted git repository.
chanjarster pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git
commit 7ca2bdf50844382d88eba5ca6345651ced2f66a3
Author: kakulisen <18...@163.com>
AuthorDate: Fri Dec 13 17:36:31 2019 +0800
[SCB-1660] remove the tagged commit check
Signed-off-by: kakulisen <18...@163.com>
---
scripts/deploy.sh | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 5ca8fd5..5b6e129 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -17,16 +17,9 @@
## ---------------------------------------------------------------------------
#bin/sh
-TAGGEDCOMMIT=$(git tag -l --contains HEAD)
-if [ "$TAGGEDCOMMIT" == "" ]; then
- TAGGEDCOMMIT=false
-else
- TAGGEDCOMMIT=true
-fi
-echo "${green}[SCRIPT] TAGGEDCOMMIT=$TAGGEDCOMMIT${reset}"
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
-if [[ "$TAGGEDCOMMIT" == "true" ]] || [[ ! $VERSION =~ "SNAPSHOT" ]]; then
- echo "${green}[SCRIPT] Skipping the Non-Signed Staging deploy as it is tagged commit.${reset}"
+if [[ ! $VERSION =~ "SNAPSHOT" ]]; then
+ echo "${green}[SCRIPT] Not Snapshot Version,Skipping Deployment.${reset}"
else
echo "Deploy a Non-Signed Staging Release"
mvn deploy -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -DskipTests --settings .travis.settings.xml