@@ -407,7 +407,7 @@ public String getConsoleOutputHtml() throws IOException {
407407 * @throws IOException in case of an error.
408408 *
409409 */
410- public void streamConsoleOutput (final BuildConsoleStreamListener listener , final int poolingInterval , final int poolingTimeout ) throws InterruptedException , IOException {
410+ public void streamConsoleOutput (final BuildConsoleStreamListener listener , final int poolingInterval , final int poolingTimeout , boolean crumbFlag ) throws InterruptedException , IOException {
411411 // Calculate start and timeout
412412 final long startTime = System .currentTimeMillis ();
413413 final long timeoutTime = startTime + (poolingTimeout * 1000 );
@@ -417,7 +417,7 @@ public void streamConsoleOutput(final BuildConsoleStreamListener listener, final
417417 Thread .sleep (poolingInterval * 1000 );
418418
419419 ConsoleLog consoleLog = null ;
420- consoleLog = getConsoleOutputText (bufferOffset );
420+ consoleLog = getConsoleOutputText (bufferOffset , crumbFlag );
421421 String logString = consoleLog .getConsoleLog ();
422422 if (logString != null && !logString .isEmpty ()) {
423423 listener .onData (logString );
@@ -447,11 +447,11 @@ public void streamConsoleOutput(final BuildConsoleStreamListener listener, final
447447 * {@code CR+LF}.
448448 * @throws IOException in case of a failure.
449449 */
450- public ConsoleLog getConsoleOutputText (int bufferOffset ) throws IOException {
450+ public ConsoleLog getConsoleOutputText (int bufferOffset , boolean crumbFlag ) throws IOException {
451451 List <NameValuePair > formData = new ArrayList <>();
452452 formData .add (new BasicNameValuePair ("start" , Integer .toString (bufferOffset )));
453453 String path = getUrl () + "logText/progressiveText" ;
454- HttpResponse httpResponse = client .post_form_with_result (path , formData , false );
454+ HttpResponse httpResponse = client .post_form_with_result (path , formData , crumbFlag );
455455
456456 Header moreDataHeader = httpResponse .getFirstHeader (MORE_DATA_HEADER );
457457 Header textSizeHeader = httpResponse .getFirstHeader (TEXT_SIZE_HEADER );
0 commit comments