2

I have a Jenkins job implemented as a groovy pipeline with some windows batch calls (NOT bash shell) in it. The Jenkins console output is very verbose, so every line of the groovy script, even the curly braces "{" are being displayed...

Example:

[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage

I actually expected this to be a simple Jenkins setting... However after reading a dozen of links I could not find any useful solution for this particular case - a groovy pipeline (with some windows batch calls in it).

Anyone know a way to solve this?

StephenKing
  • 36,187
  • 11
  • 83
  • 112
anar chipur
  • 109
  • 2
  • 10
  • See answers here: https://stackoverflow.com/questions/51110083/suppress-scripted-pipelines-output-in-jenkins – mcouthon Jul 01 '22 at 13:04

2 Answers2

0

Interestingly enough there's an open bug for this: https://issues.jenkins-ci.org/browse/JENKINS-45210

hakamairi
  • 4,464
  • 4
  • 30
  • 53
0

You can quiet those down by altering the Extra CSS field in Jenkins' System Configuration. I added the following:

.pipeline-new-node {
    display: none;
}

Jenkins Extra CSS

mcouthon
  • 140
  • 7