netty5/scripts/list_staged_release.sh
Norman Maurer 6aed84d009 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
2021-02-22 08:03:06 +01:00

7 lines
299 B
Bash
Executable File

#!/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"