diff --git a/scripts/list_staged_release.sh b/scripts/list_staged_release.sh new file mode 100755 index 0000000000..c71aac0116 --- /dev/null +++ b/scripts/list_staged_release.sh @@ -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"