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 15
15
16
16
set -eo pipefail
17
17
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
19
23
24
+ source $( dirname " $0 " ) /common.sh
20
25
pushd $( dirname " $0 " ) /../../
21
26
22
27
setup_environment_secrets
23
28
create_settings_xml_file " settings.xml"
24
29
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 15
15
16
16
set -eo pipefail
17
17
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
+
18
24
source $( dirname " $0 " ) /common.sh
19
25
20
26
pushd $( dirname " $0 " ) /../../
21
27
22
28
setup_environment_secrets
23
29
create_settings_xml_file " settings.xml"
24
30
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