Avoiding Unwanted "Animated" Console Output on Jenkins

Sometimes I find logical strings similar to these in my Job Jenkins release:

 [|]   [/]   [-]   [\]   [|]   [/]   [-]   [\]   [|]   [/]   [-]

I know these lines are taken from the "Progress Spinner" ( https://askubuntu.com/questions/623933/how-to-create-a-rotation-animation-using-shell-script ), but they look weird in text magazine.

It gets worse when the tool uses the "command line progress bar" that comes, for example. when pulling a Docker image or NPM package - then the log contains real ugly (and unnecessary) protocol blocks.

...
xtracting [=============>                                   ]  15.2 MB/50.31 MB
xtracting [==============>                                  ]  15.2 MB/50.31 MB
xtracting [===============>                                 ]  15.2 MB/50.31 MB
xtracting [================>                                ]  15.2 MB/50.31 MB
xtracting [=================>                               ]  15.2 MB/50.31 MB
----

Is there an existing Jenkins plugin (such as Ansi-Color Plugin ) that either shows the animation or reduces the output to the final "position"?

I do not want to use each tool in silent mode to skip these unnecessary ascii arts, because then a lot of interesting information is lost.

+4
source share
1 answer

This is an interesting topic, but I’m afraid that you can’t do anything to “squeeze” the result if the tool did not detect TTY properly.

Here are the workarounds:

  • , , . -q --silent
  • - , , .
0

Source: https://habr.com/ru/post/1669716/


All Articles