Skip to content

Commit 2e55490

Browse files
committed
release.sh: also handle gradle in [INFO] mode
1 parent f5845b9 commit 2e55490

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

release.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ mvn -Darguments="-DskipTests" release:perform
55

66
sleep 5
77

8-
REP_ID=`mvn nexus-staging:rc-list | grep comalgolia | cut -d" " -f1`
8+
MVN_REP=`mvn nexus-staging:rc-list | grep comalgolia`
9+
if [[ $MVN_REP == *"[INFO]"* ]]
10+
then
11+
REP_ID=`echo $MVN_REP | cut -d" " -f2`
12+
else
13+
REP_ID=`echo $MVN_REP | cut -d" " -f1`
14+
fi
915

1016
if [ -z "$REP_ID" ]; then
1117
echo "Can not find a REP_ID"
@@ -16,7 +22,7 @@ echo "----------------------"
1622
echo "REP_ID found: $REP_ID"
1723
echo "----------------------"
1824

19-
sleep 5
25+
sleep 15 #sleep longer
2026

2127
mvn nexus-staging:close -DstagingRepositoryId="$REP_ID"
2228
mvn nexus-staging:release -DstagingRepositoryId="$REP_ID"

0 commit comments

Comments
 (0)