Skip to content

Commit ef0f88d

Browse files
author
RanVaknin
committed
Fix staging dir path
1 parent 05922a8 commit ef0f88d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

buildspecs/release-to-maven-central.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ version: 0.2
22

33
phases:
44
install:
5-
runtime-versions:
6-
java: corretto8
75
commands:
86
- pip install awscli --upgrade --user
97

@@ -46,13 +44,13 @@ phases:
4644
mvn clean deploy -B -s $SETTINGS_XML -Pcentral-portal-publishing -DperformRelease -DautoPublish=true -DdeploymentName="software.amazon.awssdk-$RELEASE_VERSION" -Dspotbugs.skip -DskipTests -Dcheckstyle.skip -Djapicmp.skip -Ddoclint=none -DstagingProgressTimeoutMinutes=30 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -pl $MODULES_TO_SKIP_FORMATTED
4745
4846
# Report staging folder size to CloudWatch
49-
if [ -d "/target/central-staging" ]; then
47+
if [ -d "target/central-staging" ]; then
5048
STAGING_SIZE_MB=$(du -sm target/central-staging | cut -f1)
5149
aws cloudwatch put-metric-data \
5250
--namespace "AwsJavaSdkRelease" \
53-
--metric-data MetricName=StagingFolderSize,Value=$STAGING_SIZE_KB,Unit=Kilobytes,Dimensions=Name=ReleaseVersion,Value=$RELEASE_VERSION
51+
--metric-data MetricName=StagingFolderSize,Value=$STAGING_SIZE_MB,Unit=Megabytes,Dimensions=Name=ReleaseVersion,Value=$RELEASE_VERSION
5452
else
55-
echo "Staging folder /target/central-staging not found"
53+
echo "Staging folder target/central-staging not found"
5654
fi
5755
else
5856
echo "This version was already released."

0 commit comments

Comments
 (0)