I have the same problem ... I am reading streamed output from a long running HTTP request and want to print it line-by-line to the jenkins job console (in realtime).
If I do it via println / echo then I end up with 3 lines printed by jenkins where it was originally one in the HTTP output, e.g.:
[Pipeline] echo
HELLO0 -> 2018-11-07 00:45:11.427218
[Pipeline] echo
HELLO1 -> 2018-11-07 00:45:11.530216
[Pipeline] echo
HELLO2 -> 2018-11-07 00:45:11.632216
[Pipeline] echo
HELLO3 -> 2018-11-07 00:45:11.734223
[Pipeline] echo
HELLO4 -> 2018-11-07 00:45:11.836223
[Pipeline] echo
HELLO5 -> 2018-11-07 00:45:11.938223
[Pipeline] echo
HELLO6 -> 2018-11-07 00:45:12.040216
whereas the server HTTP wrote:
HELLO0 -> 2018-11-07 00:45:11.427218
HELLO1 -> 2018-11-07 00:45:11.530216
HELLO2 -> 2018-11-07 00:45:11.632216
HELLO3 -> 2018-11-07 00:45:11.734223
HELLO4 -> 2018-11-07 00:45:11.836223
HELLO5 -> 2018-11-07 00:45:11.938223
HELLO6 -> 2018-11-07 00:45:12.040216
How can I write to the jenkins job log without any echoing / extraneous lines being inserted??!
Thanks
I have the same problem ... I am reading streamed output from a long running HTTP request and want to print it line-by-line to the jenkins job console (in realtime).
If I do it via println / echo then I end up with 3 lines printed by jenkins where it was originally one in the HTTP output, e.g.:
whereas the server HTTP wrote:
How can I write to the jenkins job log without any echoing / extraneous lines being inserted??!
Thanks