Code Review
/
ci-management.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
87e879e
)
Retrieve console timestamps from source system
45/45945/1
author
Gary Wu
<gary.i.wu@huawei.com>
Thu, 3 May 2018 18:15:00 +0000
(11:15 -0700)
committer
Gary Wu
<gary.i.wu@huawei.com>
Thu, 3 May 2018 18:28:01 +0000
(11:28 -0700)
Change-Id: I28e06fa2f039552f857e00ed424697c68a25219e
Issue-ID: INT-401
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
jjb/lab/include-raw-lab-retrieve-logs.sh
patch
|
blob
|
history
diff --git
a/jjb/lab/include-raw-lab-retrieve-logs.sh
b/jjb/lab/include-raw-lab-retrieve-logs.sh
index
6335e49
..
2e51d35
100644
(file)
--- 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