Merge "Grab the html version of console log"

This commit is contained in:
Jenkins 2014-10-07 18:21:43 +00:00 committed by Gerrit Code Review
commit 3eee6584d7

View File

@ -2,5 +2,17 @@
echo "Grabbing consoleLog"
console_log_path='consoleText'
wget -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path
# Get the plain text version (does not contain links or timestamps)
# (Disabled for now)
#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