Skip to content

Commit

Permalink
SERVER-24830 Improve error handling for FTDC uploads in Evergreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Grundy committed Jun 29, 2016
1 parent 67afbdf commit e1e23fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etc/evergreen.yml
Expand Up @@ -694,8 +694,12 @@ post:
params:
working_dir: src
script: |
set -o verbose
${tar|tar} cvzf diagnostic-data.tgz $(find /data/db -type d -name diagnostic.data)
if [ -d /data/db ]; then
file_list=$(cd /data/db && find . -type d -name diagnostic.data)
if [ -n "$file_list" ]; then
${tar|tar} cvzf diagnostic-data.tgz -C /data/db $file_list
fi
fi
- command: archive.targz_pack
params:
target: "diskstats.tgz"
Expand Down

0 comments on commit e1e23fb

Please sign in to comment.