calculate and record the size of the log files for tripleo-ci
For good house keeping it will be a good idea to be able to see the size of the logs we are sending up to openstack infra Change-Id: I5c3339cc17b485b8f42735b4eca95a5e02441ea9
This commit is contained in:
parent
85574b5414
commit
c1bc124048
@ -307,6 +307,11 @@ function postci(){
|
|||||||
# too much time debugging. It's currently only happening on the mitaka
|
# too much time debugging. It's currently only happening on the mitaka
|
||||||
# branch anyway, so once that branch goes EOL we can probably remove this.
|
# branch anyway, so once that branch goes EOL we can probably remove this.
|
||||||
sudo iptables -I INPUT -p tcp -j ACCEPT
|
sudo iptables -I INPUT -p tcp -j ACCEPT
|
||||||
|
|
||||||
|
# record the size of the logs directory
|
||||||
|
# -L, --dereference dereference all symbolic links
|
||||||
|
du -L -ch $WORKSPACE/logs/* | sort -rh | head -n 200 &> $WORKSPACE/logs/log-size.txt || true
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ popd
|
|||||||
|
|
||||||
# record the size of the logs directory
|
# record the size of the logs directory
|
||||||
# -L, --dereference dereference all symbolic links
|
# -L, --dereference dereference all symbolic links
|
||||||
du -L -sch $LOGS_DIR &> $LOGS_DIR/log-size.txt || true
|
du -L -ch $LOGS_DIR/* | sort -rh | head -n 200 &> $LOGS_DIR/log-size.txt || true
|
||||||
|
|
||||||
echo 'Quickstart completed.'
|
echo 'Quickstart completed.'
|
||||||
exit $exit_value
|
exit $exit_value
|
||||||
|
Loading…
Reference in New Issue
Block a user