vumi
vumi

Reputation: 186

Is it possible to disable [Pipeline] messages in Jenkins pipeline console output?

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?

Upvotes: 15

Views: 11459

Answers (4)

PK_008
PK_008

Reputation: 11

One more way by which you can hide script section messages, by placing "@" (without quotes) before any script line that you do not want to print in pipeline

Upvotes: 0

Dan Fitzpatrick
Dan Fitzpatrick

Reputation: 11

I've also been looking for a way to reduce the amount of output in my pipeline logs. Until now, the only results I have found focus on putting set +x as the first line of a sh step, but that doesn't really do anything for the pipeline step echoes. I would really love to see a solution that did not rely on editing CSS, but rather on the pipeline code; maybe in the options declarative...

Upvotes: 1

jimtut
jimtut

Reputation: 2393

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.

Upvotes: 4

krad
krad

Reputation: 1419

This is a bit old but have a look at the blue ocean plugin. It totally alters the way you view pipelines and you may find that these messages are no longer an issue.

Upvotes: -2

Related Questions