2014-05-30 15:15:51 -07:00
|
|
|
#!/bin/bash -xe
|
|
|
|
|
|
|
|
echo "Grabbing consoleLog"
|
|
|
|
|
2014-10-07 16:58:57 +11:00
|
|
|
# Get the plain text version (does not contain links or timestamps)
|
2014-10-08 06:15:43 +11:00
|
|
|
console_log_path='consoleText'
|
|
|
|
wget -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path
|
2014-10-07 16:58:57 +11:00
|
|
|
|
|
|
|
# Grab the HTML version of the log (includes timestamps)
|
|
|
|
console_log_path='logText/progressiveHtml'
|
|
|
|
wget -O /tmp/console.html --no-check-certificate $BUILD_URL$console_log_path
|
|
|
|
|
|
|
|
# We need to add <pre> tags around the output for log-osanalyze to not escape
|
|
|
|
# the content
|
|
|
|
|
|
|
|
sed -i '1s/^/<pre>\n/' /tmp/console.html
|
|
|
|
echo "</pre>" >> /tmp/console.html
|