From ec0a0c0705df1f35501fcd588ffbfe669c330aaf Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Tue, 6 Dec 2016 18:54:02 +1000 Subject: [PATCH] Prefix timestamps on archived console logs Time stamper plugin adds time stamps only to the jobs console logs, which is unavailble on the archived console logs. This change fixes the issue using the paste command. Change-Id: Idc08840622a62dc679b0030554cfb4377472d726 Signed-off-by: Anil Belur Signed-off-by: Thanh Ha --- include-raw-deploy-archives.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include-raw-deploy-archives.sh b/include-raw-deploy-archives.sh index 3873406f..991b2df3 100644 --- a/include-raw-deploy-archives.sh +++ b/include-raw-deploy-archives.sh @@ -90,7 +90,9 @@ touch $ARCHIVES_DIR/_sys-info.txt # Magic string used to trim console logs at the appropriate level during wget echo "-----END_OF_BUILD-----" wget -O $ARCHIVES_DIR/console.log ${{BUILD_URL}}consoleText +wget -O $ARCHIVES_DIR/console-timestamp.log "${{BUILD_URL}}/timestamps?time=HH:mm:ss&appendLog" sed -i '/^-----END_OF_BUILD-----$/,$d' $ARCHIVES_DIR/console.log +sed -i '/^.*-----END_OF_BUILD-----$/,$d' $ARCHIVES_DIR/console-timestamp.log gzip $ARCHIVES_DIR/*.txt $ARCHIVES_DIR/*.log # find and gzip any 'text' files -- 2.16.6