File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1515
1616set -eo pipefail
1717
18- source $( dirname " $0 " ) /common.sh
18+ # STAGING_REPOSITORY_ID must be set
19+ if [ -z " ${STAGING_REPOSITORY_ID} " ]; then
20+ echo " Missing STAGING_REPOSITORY_ID environment variable"
21+ exit 1
22+ fi
1923
24+ source $( dirname " $0 " ) /common.sh
2025pushd $( dirname " $0 " ) /../../
2126
2227setup_environment_secrets
2328create_settings_xml_file " settings.xml"
2429
25- mvn nexus-staging:drop --settings=settings.xml
30+ mvn nexus-staging:drop -B \
31+ --settings=settings.xml \
32+ -DstagingRepositoryId=${STAGING_REPOSITORY_ID}
Original file line number Diff line number Diff line change 1515
1616set -eo pipefail
1717
18+ # STAGING_REPOSITORY_ID must be set
19+ if [ -z " ${STAGING_REPOSITORY_ID} " ]; then
20+ echo " Missing STAGING_REPOSITORY_ID environment variable"
21+ exit 1
22+ fi
23+
1824source $( dirname " $0 " ) /common.sh
1925
2026pushd $( dirname " $0 " ) /../../
2127
2228setup_environment_secrets
2329create_settings_xml_file " settings.xml"
2430
25- mvn nexus-staging:release -DperformRelease=true --settings=settings.xml
31+ mvn nexus-staging:release -B \
32+ -DperformRelease=true \
33+ --settings=settings.xml \
34+ -DstagingRepositoryId=${STAGING_REPOSITORY_ID}
You can’t perform that action at this time.
0 commit comments