File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments