From 83211fa87d9522c520a68cf6394fb134066973db Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 4 May 2017 13:51:11 -0400 Subject: [PATCH] Only dump last 100 lines of stdout and stderr to the jenkins console --- scripts/generic-ci-tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/generic-ci-tests.sh b/scripts/generic-ci-tests.sh index e0b6111702..dd310feecc 100755 --- a/scripts/generic-ci-tests.sh +++ b/scripts/generic-ci-tests.sh @@ -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;