circleci: Save the postgres logs as artifacts

This commit is contained in:
Eric Seppanen
2021-05-07 17:50:39 -07:00
parent d26b76fe7c
commit 8952066ecb

View File

@@ -165,6 +165,11 @@ jobs:
du -sh /tmp/test_output/*
for DIR in /tmp/test_output/*; do
mv $DIR/repo/pageserver.log $DIR/ || true # ignore errors
for PGDIR in $DIR/repo/pgdatadirs/pg?; do
echo "PGDIR: $PGDIR"
NEW_LOG="${PGDIR##*/}_log"
mv $PGDIR/log "$DIR/$NEW_LOG" || true # ignore errors
done
echo "rm $DIR/repo"
rm -rf $DIR/repo
done