Chore: Update CLM jobs to run only on master
[ci-management.git] / jjb / lab / include-raw-lab-retrieve-logs.sh
1 #!/bin/bash
2 set -xe -o pipefail
3
4 echo Job triggered by $SRC_BUILD_URL
5 echo Retriving logs from $LOG_DIR_URL
6
7 rm -rf archives
8 mkdir -p archives
9 curl -f "$SRC_BUILD_URL/timestamps/?time=HH:mm:ssZ&appendLog" > archives/console-source-timestamp.log
10 wget -r -nv -nd --no-parent -l 1 --reject="index.html*" -P archives "$LOG_DIR_URL"
11 if [ -s archives/console-source-timestamp.log ]; then
12     cat archives/console-source-timestamp.log
13 else
14     cat archives/console.log
15 fi