From: Anil Belur Date: Tue, 6 Dec 2016 08:54:02 +0000 (+1000) Subject: Prefix timestamps on archived console logs X-Git-Tag: v0.0.6~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F4075%2F1;p=releng%2Flftools.git 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 --- 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