We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5845b9 commit 2e55490Copy full SHA for 2e55490
release.sh
@@ -5,7 +5,13 @@ mvn -Darguments="-DskipTests" release:perform
5
6
sleep 5
7
8
-REP_ID=`mvn nexus-staging:rc-list | grep comalgolia | cut -d" " -f1`
+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
15
16
if [ -z "$REP_ID" ]; then
17
echo "Can not find a REP_ID"
@@ -16,7 +22,7 @@ echo "----------------------"
22
echo "REP_ID found: $REP_ID"
23
echo "----------------------"
18
24
19
-sleep 5
25
+sleep 15 #sleep longer
20
26
21
27
mvn nexus-staging:close -DstagingRepositoryId="$REP_ID"
28
mvn nexus-staging:release -DstagingRepositoryId="$REP_ID"
0 commit comments