@@ -407,7 +407,7 @@ public String getConsoleOutputHtml() throws IOException {
407
407
* @throws IOException in case of an error.
408
408
*
409
409
*/
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 {
411
411
// Calculate start and timeout
412
412
final long startTime = System .currentTimeMillis ();
413
413
final long timeoutTime = startTime + (poolingTimeout * 1000 );
@@ -417,7 +417,7 @@ public void streamConsoleOutput(final BuildConsoleStreamListener listener, final
417
417
Thread .sleep (poolingInterval * 1000 );
418
418
419
419
ConsoleLog consoleLog = null ;
420
- consoleLog = getConsoleOutputText (bufferOffset );
420
+ consoleLog = getConsoleOutputText (bufferOffset , crumbFlag );
421
421
String logString = consoleLog .getConsoleLog ();
422
422
if (logString != null && !logString .isEmpty ()) {
423
423
listener .onData (logString );
@@ -447,11 +447,11 @@ public void streamConsoleOutput(final BuildConsoleStreamListener listener, final
447
447
* {@code CR+LF}.
448
448
* @throws IOException in case of a failure.
449
449
*/
450
- public ConsoleLog getConsoleOutputText (int bufferOffset ) throws IOException {
450
+ public ConsoleLog getConsoleOutputText (int bufferOffset , boolean crumbFlag ) throws IOException {
451
451
List <NameValuePair > formData = new ArrayList <>();
452
452
formData .add (new BasicNameValuePair ("start" , Integer .toString (bufferOffset )));
453
453
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 );
455
455
456
456
Header moreDataHeader = httpResponse .getFirstHeader (MORE_DATA_HEADER );
457
457
Header textSizeHeader = httpResponse .getFirstHeader (TEXT_SIZE_HEADER );
0 commit comments