blob: 9b0b00cd7c4fc58d677ab7727c355558103bb891 [file] [log] [blame]
Gary Wuee95ea52018-01-25 16:06:29 -08001#!/bin/bash
2set -xe -o pipefail
3
4echo Job triggered by $SRC_BUILD_URL
5echo Retriving logs from $LOG_DIR_URL
6
7rm -rf archives
Gary Wu7087ff62018-05-03 16:03:24 -07008mkdir -p archives
9curl -f "$SRC_BUILD_URL/timestamps/?time=HH:mm:ssZ&appendLog" > archives/console-source-timestamp.log
Gary Wuee95ea52018-01-25 16:06:29 -080010wget -r -nv -nd --no-parent -l 1 --reject="index.html*" -P archives "$LOG_DIR_URL"
Gary Wu7087ff62018-05-03 16:03:24 -070011if [ -s archives/console-source-timestamp.log ]; then
12 cat archives/console-source-timestamp.log
Gary Wuae3241d2018-05-03 11:15:00 -070013else
14 cat archives/console.log
15fi