Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46892

[pipeline] echo is spamming console logs - redundant

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None

      We observed that the console log is spammed by echo message which are really useful for the user. We need to find a way to disable these pipeline messages, preferably only the echo ones.

          [JENKINS-46892] [pipeline] echo is spamming console logs - redundant

          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

          Wolfgang Steiner added a comment - 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

            Unassigned Unassigned
            ssbarnea Sorin Sbarnea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: