File tree 5 files changed +25
-4
lines changed
5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ Resources:
91
91
# # If this value is 0, greater than 25, or not provided then the full history is downloaded with each build project.
92
92
GitCloneDepth : 0
93
93
GitSubmodulesConfig :
94
- FetchSubmodules : false
94
+ FetchSubmodules : true
95
95
InsecureSsl : false
96
96
ReportBuildStatus : false
97
97
Type : GITHUB
Original file line number Diff line number Diff line change @@ -58,15 +58,21 @@ phases:
58
58
--package $PACKAGE \
59
59
--versions $VERSION_HASH \
60
60
--region $REGION;
61
-
61
+ # Assume Role to access non-prod resources
62
+ - TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-Public-ESDK-Java-Role-us-west-2" --role-session-name "CB-TestVectorResources")
63
+ - export TMP_ROLE
64
+ - export AWS_ACCESS_KEY_ID=$(echo "${TMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
65
+ - export AWS_SECRET_ACCESS_KEY=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
66
+ - export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
67
+ - aws sts get-caller-identity
62
68
# See https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
63
69
- echo "Setting version in POM to $VERSION_HASH"
64
70
- mvn versions:set -DnewVersion="$VERSION_HASH" --no-transfer-progress
65
71
- echo "Version is now $(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')"
66
72
- |
67
73
mvn deploy \
68
74
-PpublishingCodeArtifact \
69
- -Dmaven.test.skip=true \
75
+ -Pfast-tests-only \
70
76
-DperformRelease \
71
77
-Dgpg.homedir="$HOME/mvn_gpg" \
72
78
-DautoReleaseAfterClose=true \
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ phases:
43
43
- cd $CODEBUILD_SRC_DIR
44
44
build :
45
45
commands :
46
+ # Assume Role to access non-prod resources
47
+ - TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-Public-ESDK-Java-Role-us-west-2" --role-session-name "CB-TestVectorResources")
48
+ - export TMP_ROLE
49
+ - export AWS_ACCESS_KEY_ID=$(echo "${TMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
50
+ - export AWS_SECRET_ACCESS_KEY=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
51
+ - export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
52
+ - aws sts get-caller-identity
46
53
- |
47
54
mvn deploy \
48
55
-Ppublishing \
Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ phases:
46
46
- cd $CODEBUILD_SRC_DIR
47
47
build :
48
48
commands :
49
+ # Assume Role to access non-prod resources
50
+ - TMP_ROLE=$(aws sts assume-role --role-arn "arn:aws:iam::370957321024:role/GitHub-CI-Public-ESDK-Java-Role-us-west-2" --role-session-name "CB-TestVectorResources")
51
+ - export TMP_ROLE
52
+ - export AWS_ACCESS_KEY_ID=$(echo "${TMP_ROLE}" | jq -r '.Credentials.AccessKeyId')
53
+ - export AWS_SECRET_ACCESS_KEY=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SecretAccessKey')
54
+ - export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
55
+ - aws sts get-caller-identity
56
+
49
57
- VERSION_HASH="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$CODEBUILD_RESOLVED_SOURCE_VERSION"
50
58
# See https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
51
59
- echo "Setting version in POM to $VERSION_HASH"
Original file line number Diff line number Diff line change 239
239
<limit >
240
240
<counter >INSTRUCTION</counter >
241
241
<value >COVEREDRATIO</value >
242
- <minimum >0.88 </minimum >
242
+ <minimum >0.87 </minimum >
243
243
</limit >
244
244
<limit >
245
245
<counter >BRANCH</counter >
You can’t perform that action at this time.
0 commit comments