Add script which list staged releases

Motivation:

When finish the release process we need to give the id of the staged release. Let's add a script for that

Modifications:

Add script which allows to show all staged releases

Result:

No need to login into sonatype anymore
This commit is contained in:
Norman Maurer 2021-02-22 08:03:06 +01:00
parent 28d4154fff
commit 6aed84d009

6
scripts/list_staged_release.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
RC_LIST=$(mvn org.sonatype.plugins:nexus-staging-maven-plugin:rc-list -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org | grep -A 2 "\[INFO\] ID State Description")
STAGED=$(echo "$RC_LIST" | grep 'OPEN' | cut -f 2 -d ' ')
echo "$STAGED"