Answer a question

I am working on some particular Jenkins pipeline which has many steps included - most of which are written in Groovy - because of that I am seeing many [Pipeline] messages which are totally unimportant and unnecessary for me. Is it possible to suppress those?

I am asking for something similiar as in related question 2. but I would like to supress all [Pipeline] messages - which includes messages like:

[Pipeline] node
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] bat
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

And more...

Related questions:

  1. How to disable command output in jenkins pipeline build logs
  2. How to suppress source script lines echo in jenkins pipeline console output?

Answers

We just fixed this following the CSS-based solution in Suppress Scripted Pipelines Output in Jenkins

It looks like the CSS elements might have changed, since the accepted answer:

.pipeline-annotated {
    display: none;
}

didn't work for me, I had to use the .pipeline-new-node CSS class shown in another answer.

Logo

CI/CD社区为您提供最前沿的新闻资讯和知识内容

更多推荐