Merge "Revert "Run logs collection after job finished in RDO CI""

This commit is contained in:
Zuul 2018-03-19 22:52:54 +00:00 committed by Gerrit Code Review
commit f238305931
1 changed files with 9 additions and 0 deletions

View File

@ -160,6 +160,15 @@ sudo gzip -d -r /opt/stack/new/tempest/.testrepository || true
du -L -ch $LOGS_DIR/* | tail -n +1 | sort -rh | head -n 200 &> $LOGS_DIR/log-size.txt || true
EOF
if [[ "${NODEPOOL_PROVIDER:-''}" == "rdo-cloud-tripleo" ]] || [[ "${NODEPOOL_PROVIDER:-''}" == "tripleo-test-cloud-rh1" ]]; then
if [[ "$TOCI_JOBTYPE" =~ "ovb" ]]; then
bash $LOGS_DIR/collect_logs.sh
# rename script to not to run it in multinode jobs
mv $LOGS_DIR/collect_logs.sh $LOGS_DIR/ovb_collect_logs.sh
fi
fi
popd
sudo unbound-control dump_cache > /tmp/dns_cache.txt