summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authortrahman1318 <tausif.rahman@mongodb.com>2021-11-08 14:48:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-08 15:43:04 +0000
commit69136094a89c1f6b31b82e5a2e05ade82e5f55fb (patch)
treedadba7ee5b2a251b245ae2056fcb4551f1f31d67 /evergreen
parente1c33dfc0edc4d52062e4349bf07357105bafdac (diff)
downloadmongo-69136094a89c1f6b31b82e5a2e05ade82e5f55fb.tar.gz
SERVER-60655 Upload npm debug logs for fuzzer tasks
Diffstat (limited to 'evergreen')
-rw-r--r--evergreen/move_npm_logs.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/evergreen/move_npm_logs.sh b/evergreen/move_npm_logs.sh
new file mode 100644
index 00000000000..850d0baa861
--- /dev/null
+++ b/evergreen/move_npm_logs.sh
@@ -0,0 +1,10 @@
+DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
+. "$DIR/prelude.sh"
+
+set -o errexit
+set -o verbose
+
+if [ -d "${HOME}/.npm/_logs" ] && [ -n "$(ls -A "${HOME}/.npm/_logs")" ]; then
+ cp -r "${HOME}"/.npm/_logs "${workdir}"
+ rm -rf "${HOME}"/.npm/_logs/*
+fi