File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ phases:
57
57
- mvn -B versions:set -DnewVersion=${PKG_VERSION}
58
58
- mvn -B deploy -Prelease -Dmaven.test.skip=true -Dgpg.passphrase=$GPG_PASSPHRASE | tee /tmp/deploy.log
59
59
- cat /tmp/deploy.log | grep "Created staging repository with ID" | cut -d\" -f2 | tee /tmp/repositoryId.txt
60
+ # Store the repository ID in a secret for use later
61
+ - aws secretsmanager update-secret --secret-id cd/aws-iot-device-sdk-java-v2/repository-id --secret-string "$(cat /tmp/repositoryId.txt)" --region us-east-1
60
62
61
63
artifacts :
62
64
discard-paths : yes
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ phases:
39
39
40
40
- gpg --batch --import /tmp/aws-sdk-common-runtime.key.asc
41
41
- export GPG_PASSPHRASE=$(aws --query "SecretString" secretsmanager get-secret-value --secret-id cd/aws-crt-java-key/password | cut -f2 -d":" | sed -e 's/[\\\"\}]//g')
42
- - export REPOSITORY_ID=$(cat $CODEBUILD_SRC_DIR_aws_iot_device_sdk_java_v2_jar/repositoryId.txt )
42
+ - export REPOSITORY_ID=$(aws --query "SecretString" secretsmanager get-secret-value --secret-id cd/aws-iot-device-sdk-java-v2/repository-id --region us-east-1 | sed -e 's/[\\\"\}]//g' )
43
43
44
44
# Java 17 needs special JDK options apparently. It is a known Sonatype issue.
45
45
# Issue link: https://issues.sonatype.org/browse/NEXUS-27902
You can’t perform that action at this time.
0 commit comments