Skip to content

Commit 945376e

Browse files
committed
add core dumps
1 parent 8f45539 commit 945376e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.evergreen/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,29 @@ functions:
116116
content_type: text/html
117117
display_name: "Coverage Report HTML"
118118

119+
"upload core dumps":
120+
- command: ec2.assume_role
121+
params:
122+
role_arn: ${assume_role_arn}
123+
- command: archive.targz_pack
124+
params:
125+
target: "mongo-coredumps.tgz"
126+
source_dir: ${PROJECT_DIRECTORY}/
127+
include:
128+
- "./**.core"
129+
- "./**.mdmp" # Windows: minidumps
130+
- command: s3.put
131+
params:
132+
aws_key: ${AWS_ACCESS_KEY_ID}
133+
aws_secret: ${AWS_SECRET_ACCESS_KEY}
134+
aws_session_token: ${AWS_SESSION_TOKEN}
135+
local_file: mongo-coredumps.tgz
136+
remote_file: ${build_variant}/${revision}/${version_id}/${build_id}/coredumps/${task_id}-${execution}-mongodb-coredumps.tar.gz
137+
bucket: ${bucket_name}
138+
permissions: public-read
139+
content_type: ${content_type|application/gzip}
140+
display_name: Core Dumps - Execution
141+
optional: true
119142

120143
"upload mo artifacts":
121144
- command: ec2.assume_role
@@ -645,6 +668,7 @@ post:
645668
- func: "teardown system"
646669
- func: "upload coverage"
647670
- func: "upload mo artifacts"
671+
- func: "upload core dumps"
648672
- func: "upload test results"
649673
- func: "stop mongo-orchestration"
650674
- func: "cleanup"

0 commit comments

Comments
 (0)