summaryrefslogtreecommitdiffstats
path: root/jjb/lab
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/lab')
-rw-r--r--jjb/lab/include-raw-lab-retrieve-logs.sh8
1 files changed, 7 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..9b0b00cd7 100644
--- a/jjb/lab/include-raw-lab-retrieve-logs.sh
+++ b/jjb/lab/include-raw-lab-retrieve-logs.sh
@@ -5,5 +5,11 @@ echo Job triggered by $SRC_BUILD_URL
echo Retriving logs from $LOG_DIR_URL
rm -rf archives
+mkdir -p archives
+curl -f "$SRC_BUILD_URL/timestamps/?time=HH:mm:ssZ&appendLog" > archives/console-source-timestamp.log
wget -r -nv -nd --no-parent -l 1 --reject="index.html*" -P archives "$LOG_DIR_URL"
-cat archives/console.log
+if [ -s archives/console-source-timestamp.log ]; then
+ cat archives/console-source-timestamp.log
+else
+ cat archives/console.log
+fi