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

空扰寡人 提交于 2019-11-30 04:36:55

问题


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?

回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/44134277/is-it-possible-to-disable-pipeline-messages-in-jenkins-pipeline-console-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!