summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-05-03 11:15:00 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-05-03 11:28:01 -0700
commitae3241df59cbf6d7846c6677d2a6813e05846699 (patch)
tree040ddda07bd7560df50f456ff283cd7fdec33806
parent87e879eb7176ac513782b3d1c76245c901cec6b6 (diff)
Retrieve console timestamps from source system
Change-Id: I28e06fa2f039552f857e00ed424697c68a25219e Issue-ID: INT-401 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--jjb/lab/include-raw-lab-retrieve-logs.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/lab/include-raw-lab-retrieve-logs.sh b/jjb/lab/include-raw-lab-retrieve-logs.sh
index 6335e49d7..2e51d359c 100644
--- a/jjb/lab/include-raw-lab-retrieve-logs.sh
+++ b/jjb/lab/include-raw-lab-retrieve-logs.sh
@@ -6,4 +6,9 @@ echo Retriving logs from $LOG_DIR_URL
rm -rf archives
wget -r -nv -nd --no-parent -l 1 --reject="index.html*" -P archives "$LOG_DIR_URL"
-cat archives/console.log
+curl -f "$SRC_BUILD_URL/timestamps?time=HH:mm:ssZ&appendLog" > archives/console-timestamp.log
+if [ -s archives/console-timestamp.log ]; then
+ cat archives/console-timestamp.log
+else
+ cat archives/console.log
+fi