Skip to content
Snippets Groups Projects
Commit 83211fa8 authored by Calen Pennington's avatar Calen Pennington
Browse files

Only dump last 100 lines of stdout and stderr to the jenkins console

parent 7376b114
No related branches found
No related tags found
No related merge requests found
......@@ -83,10 +83,10 @@ function run_paver_quality {
mkdir -p test_root/log/
LOG_PREFIX=test_root/log/$QUALITY_TASK
paver $QUALITY_TASK $* 2> $LOG_PREFIX.err.log > $LOG_PREFIX.out.log || {
echo "STDOUT:";
cat $LOG_PREFIX.out.log;
echo "STDERR:";
cat $LOG_PREFIX.err.log;
echo "STDOUT (last 100 lines of $LOG_PREFIX.out.log):";
tail -n 100 $LOG_PREFIX.out.log;
echo "STDERR (last 100 lines of $LOG_PREFIX.err.log):";
tail -n 100 $LOG_PREFIX.err.log;
return 1;
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment