Skip to content

Commit 365101a

Browse files
author
Dane Pilcher
committed
ci: fix view test artifact script
1 parent 0570e9d commit 365101a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/view-test-artifacts.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ function downloadS3Artifact {
2424
E2E_ROLE_NAME=CodebuildDeveloper
2525
E2E_PROFILE_NAME=AmplifyAPIE2EProd
2626
authenticate $E2E_ACCOUNT_PROD $E2E_ROLE_NAME "$E2E_PROFILE_NAME"
27-
2827
echo "Fetching artifact location from build"
2928
s3_arn=$(aws codebuild batch-get-builds --profile="$E2E_PROFILE_NAME" --ids "$1" --region us-east-1 --query 'builds[0].artifacts.location')
3029
# Have to remove double quote for arn
3130
s3_object_uri=$(convertArnToUri ${s3_arn//\"/})
32-
31+
echo $s3_object_uri
3332
echo "Downloading objects from S3 bucket..."
3433
aws s3 cp $s3_object_uri $2 --recursive --profile="$E2E_PROFILE_NAME"
3534
echo "Download complete. Files are saved in: $2"
@@ -42,7 +41,7 @@ function playTestArtifact {
4241
exit 1
4342
fi
4443

45-
local s3_object_uri=$1
44+
local code_build_id=$1
4645
local temp_dir=$(mktemp -d) # Create a temporary directory
4746

4847
trap "cleanup $temp_dir" SIGINT SIGTERM # Register cleanup function to handle Ctrl+C

0 commit comments

Comments
 (0)