Skip to content

Commit 5f0b429

Browse files
committed
Add drivers-evergreen-tools teardown
1 parent ae446f6 commit 5f0b429

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.evergreen/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ functions:
162162
permissions: public-read
163163
content_type: ${content_type|application/x-gzip}
164164
display_name: "mongodb-logs.tar.gz"
165+
- command: s3.put
166+
params:
167+
aws_key: ${AWS_ACCESS_KEY_ID}
168+
aws_secret: ${AWS_SECRET_ACCESS_KEY}
169+
aws_session_token: ${AWS_SESSION_TOKEN}
170+
local_file: ${DRIVERS_TOOLS}/.evergreen/test_logs.tar.gz
171+
remote_file: ${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-drivers-tools-logs.tar.gz
172+
bucket: ${aws_bucket}
173+
permissions: public-read
174+
content_type: ${content_type|application/x-gzip}
175+
display_name: "drivers-tools-logs.tar.gz"
165176

166177
"upload working dir":
167178
- command: ec2.assume_role
@@ -512,6 +523,15 @@ functions:
512523
- .evergreen/scripts/run-with-env.sh
513524
- .evergreen/scripts/cleanup.sh
514525

526+
"teardown":
527+
- command: subprocess.exec
528+
params:
529+
binary: bash
530+
working_dir: "src"
531+
args:
532+
- .evergreen/scripts/run-with-env.sh
533+
- $DRIVERS_TOOLS/.evergreen/teardown.sh
534+
515535
"fix absolute paths":
516536
- command: subprocess.exec
517537
params:
@@ -669,6 +689,7 @@ pre:
669689
post:
670690
# Disabled, causing timeouts
671691
# - func: "upload working dir"
692+
- func: "teardown"
672693
- func: "upload coverage"
673694
- func: "upload mo artifacts"
674695
- func: "upload test results"

0 commit comments

Comments
 (0)