Using the example given and here is the error:
export S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/"${S3_KEY_PREFIX}_${BITBUCKET_COMMIT}"<1s+ export S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/"${S3_KEY_PREFIX}_${BITBUCKET_COMMIT}"
bash: /opt/atlassian/pipelines/agent/tmp/bashScript5650586627821873041.sh: line 67: unexpected EOF while looking for matching `"