efcbcb1341
The jobs still require the text version of the console log. Because we need to rebuild the images before we can update which console log is being uploaded we still need to fetch console.txt Change-Id: Ib16b5d730e7b4b10f5bd0b264526ba1c5dd149fd
18 lines
568 B
Bash
Executable File
18 lines
568 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
echo "Grabbing consoleLog"
|
|
|
|
# Get the plain text version (does not contain links or timestamps)
|
|
console_log_path='consoleText'
|
|
wget -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path
|
|
|
|
# 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
|