Skip to content

Commit d41c4a7

Browse files
committed
Evergreen: Save any working dir logs
Added a new task to upload any log files created in the working dir.
1 parent c94eb05 commit d41c4a7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.evergreen/.evg.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,23 @@ functions:
157157
content_type: ${content_type|text/plain}
158158
display_name: "orchestration.log"
159159

160+
"upload working dir logs":
161+
- command: shell.exec
162+
params:
163+
script: |
164+
${PREPARE_SHELL}
165+
find ${PROJECT_DIRECTORY} -name \*.log | xargs tar czf working-dir-logs.tar.gz
166+
- command: s3.put
167+
params:
168+
aws_key: ${aws_key}
169+
aws_secret: ${aws_secret}
170+
local_file: working-dir-logs.tar.gz
171+
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-working-dir-logs.tar.gz
172+
bucket: mciuploads
173+
permissions: public-read
174+
content_type: ${content_type|application/x-gzip}
175+
display_name: "working-dir-logs.tar.gz"
176+
160177
"upload working dir":
161178
- command: archive.targz_pack
162179
params:
@@ -394,6 +411,7 @@ post:
394411
# Removed, causing timeouts
395412
# - func: "upload working dir"
396413
- func: "upload mo artifacts"
414+
- func: "upload working dir logs"
397415
- func: "upload test results"
398416
- func: "cleanup"
399417

0 commit comments

Comments
 (0)