6aed84d009
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
7 lines
299 B
Bash
Executable File
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"
|