是否可以在Jenkins管道控制台输出中禁用[Pipeline]消息? [英] Is it possible to disable [Pipeline] messages in Jenkins pipeline console output?
问题描述
我正在研究某些特定的Jenkins管道,其中包括许多步骤-其中大部分是用Groovy编写的.因此,我看到许多[Pipeline]
消息对我来说完全不重要且不必要.有可能压制那些吗?
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?
我要求类似相关问题2的内容,但我想禁止所有[Pipeline]
消息-其中包括以下消息:
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
还有更多...
相关问题:
- How to disable command output in jenkins pipeline build logs
- How to suppress source script lines echo in jenkins pipeline console output?
推荐答案
It looks like the CSS elements might have changed, since the accepted answer:
.pipeline-annotated {
display: none;
}
对我不起作用,我不得不使用另一个答案中显示的.pipeline-new-node
CSS类.
didn't work for me, I had to use the .pipeline-new-node
CSS class shown in another answer.
这篇关于是否可以在Jenkins管道控制台输出中禁用[Pipeline]消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!