Jenkins uses POSTs to do sequential downloads
Rather than use GET and a range Jenkins uses POSTs with start=beginningindex to do partial downloads of the console text and console html files. Why? Who knows. Support this ridiculousness in our grab console log script so that we can get entire logs. Change-Id: Ie653f3d8980dbf8e8606e6584a9c0ab40d2485ca
This commit is contained in:
parent
311aff2fce
commit
972a0b716e
@ -19,7 +19,7 @@ while ! grep -q "$END_UUID" /tmp/console.txt; do
|
||||
break
|
||||
fi
|
||||
sleep 3
|
||||
wget --no-cache -c -O /tmp/console.txt --no-check-certificate $BUILD_URL$console_log_path
|
||||
curl -X POST --data "start=$(stat -c %s /tmp/console.txt || echo 0)" --insecure $BUILD_URL$console_log_path >> /tmp/console.txt
|
||||
done
|
||||
|
||||
# Grab the HTML version of the log (includes timestamps)
|
||||
@ -31,7 +31,7 @@ while ! grep -q "$END_UUID" /tmp/console.html; do
|
||||
break
|
||||
fi
|
||||
sleep 3
|
||||
wget --no-cache -c -O /tmp/console.html --no-check-certificate $BUILD_URL$console_log_path
|
||||
curl -X POST --data "start=$(stat -c %s /tmp/console.html || echo 0)" --insecure $BUILD_URL$console_log_path >> /tmp/console.html
|
||||
done
|
||||
|
||||
# We need to add <pre> tags around the output for log-osanalyze to not escape
|
||||
|
Loading…
x
Reference in New Issue
Block a user