File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,11 @@ function downloadS3Artifact {
24
24
E2E_ROLE_NAME=CodebuildDeveloper
25
25
E2E_PROFILE_NAME=AmplifyAPIE2EProd
26
26
authenticate $E2E_ACCOUNT_PROD $E2E_ROLE_NAME " $E2E_PROFILE_NAME "
27
-
28
27
echo " Fetching artifact location from build"
29
28
s3_arn=$( aws codebuild batch-get-builds --profile=" $E2E_PROFILE_NAME " --ids " $1 " --region us-east-1 --query ' builds[0].artifacts.location' )
30
29
# Have to remove double quote for arn
31
30
s3_object_uri=$( convertArnToUri ${s3_arn// \" / } )
32
-
31
+ echo $s3_object_uri
33
32
echo " Downloading objects from S3 bucket..."
34
33
aws s3 cp $s3_object_uri $2 --recursive --profile=" $E2E_PROFILE_NAME "
35
34
echo " Download complete. Files are saved in: $2 "
@@ -42,7 +41,7 @@ function playTestArtifact {
42
41
exit 1
43
42
fi
44
43
45
- local s3_object_uri =$1
44
+ local code_build_id =$1
46
45
local temp_dir=$( mktemp -d) # Create a temporary directory
47
46
48
47
trap " cleanup $temp_dir " SIGINT SIGTERM # Register cleanup function to handle Ctrl+C
You can’t perform that action at this time.
0 commit comments