提交 bd0063e3 编写于 作者: K Kohsuke Kawaguchi

documenting API access to the progressive output.

上级 621eeb2b
......@@ -40,4 +40,21 @@ THE SOFTWARE.
in which the date is formatted.
</dd>
</dl>
<h2>Accessing Progressive Console Output</h2>
<p>
You can retrieve in-progress console output by making repeated GET requests with a parameter.
You'll basically send GET request to
<a href="../logText/progressiveText?start=0">this URL</a> (or <a href="../logText/progressiveHtml?start=0">this URL</a> if you
want HTML that can be put into &lt;pre> tag.)
The <tt>start</tt> parameter controls the byte offset of where you start.
</p><p>
The response will contain a chunk of the console output, as well as the <tt>X-Text-Size</tt> header that represents
the number of bytes (in the raw log file) the response served.
This is the number you want to add to the <tt>start</tt> parameter before making the next call.
</p><p>
If the response also contains the <tt>X-More-Data: true</tt> header, the server is indicating that the build
is in progress, and you need to repeat the request after some delay. The Jenkins UI waits 5 seconds before making
the next call. When this header is not present, you know that you've retrieved all the data and the build is complete.
</p>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册