我正在开发一些特定的 Jenkins 管道,其中包含许多步骤 - 其中大部分是用 Groovy 编写的 - 因此我看到许多 [Pipeline]
消息,这些消息对于我。有可能抑制这些吗?
我要求的内容与相关问题 2 中类似。但我想禁止所有 [Pipeline]
消息 - 其中包括以下消息:
[Pipeline] node
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] bat
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
还有更多...
相关问题:
最佳答案
我们刚刚按照Suppress Scripted Pipelines Output in Jenkins中基于CSS的解决方案修复了这个问题
看起来 CSS 元素可能已经改变,因为接受的答案是:
.pipeline-annotated {
display: none;
}
对我来说不起作用,我必须使用另一个答案中显示的 .pipeline-new-node
CSS 类。
关于logging - 是否可以在 Jenkins 管道控制台输出中禁用 [Pipeline] 消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44134277/