是否可以在 Jenkins 管道控制台输出中禁用 [管道] 消息? [英] Is it possible to disable [Pipeline] messages in Jenkins pipeline console output?

查看:16
本文介绍了是否可以在 Jenkins 管道控制台输出中禁用 [管道] 消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一些特定的 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

还有更多...

相关问题:

  1. 如何在jenkins管道构建中禁用命令输出日志
  2. 如何抑制源脚本詹金斯管道控制台输出中的行回显?

推荐答案

我们刚刚按照 在 Jenkins 中禁止脚本化管道输出

看起来 CSS 元素可能已经改变,因为接受的答案:

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 管道控制台输出中禁用 [管道] 消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆