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

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

问题描述

我正在研究某些特定的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管道控制台输出中回显?
  1. How to disable command output in jenkins pipeline build logs
  2. How to suppress source script lines echo in jenkins pipeline console output?

推荐答案

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

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