Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into DEVPROD-3330
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Mar 19, 2024
2 parents 1a670fa + 021f2fb commit ff9321f
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ post:
- func: assume-ec2-role
- func: attach-codegen-diff
- func: attach-cypress-results
- func: attach-logkeeper-logs
- func: attach-source-map
- func: attach-storybook
- func: attach-test-results
Expand Down Expand Up @@ -251,12 +252,9 @@ functions:
shell: bash
script: |
${PREPARE_SHELL}
# Only record to cypress cloud if this is a pr, mainline commit or an intentional patch.
# And only allow spec filtering for an intentional patch.
if [[ "${requester}" == "github_pr" || "${requester}" == "commit" ]]; then
yarn cy:run --record --key "${spruce_cypress_record_key}" --reporter junit
elif [[ "${requester}" == "patch" ]]; then
yarn cy:run --record --key "${spruce_cypress_record_key}" --reporter junit --spec "${cypress_spec}"
# Allow spec filtering for an intentional patch.
if [[ "${requester}" == "patch" ]]; then
yarn cy:run --reporter junit --spec "${cypress_spec}"
else
yarn cy:run --reporter junit
fi
Expand Down Expand Up @@ -297,6 +295,19 @@ functions:
files:
- "./spruce/bin/cypress/*.xml"

attach-logkeeper-logs:
command: s3.put
type: system
params:
aws_key: ${AWS_ACCESS_KEY_ID}
aws_secret: ${AWS_SECRET_ACCESS_KEY}
aws_session_token: ${AWS_SESSION_TOKEN}
local_file: spruce/logkeeper/logkeeperapp.log
remote_file: spruce/${task_id}/${execution}/logkeeperapp.log
bucket: mciuploads
content_type: text/plain
permissions: public-read

attach-source-map:
command: s3.put
type: system
Expand Down

0 comments on commit ff9321f

Please sign in to comment.