抑制Jenkins中的脚本化管道输出 [英] Suppress Scripted Pipelines Output in Jenkins
问题描述
我是Jenkins
的新手,想知道是否有任何示例禁止显示Jenkins
中的脚本化管道输出.
I'm relatively new to Jenkins
and was wondering if there are any examples on suppressing scripted pipelines output in Jenkins
.
我在jenkins
网站上看到了此问题,但是我我不确定如何实现.
I see this issue on jenkins
website, but I'm not exactly sure how to implement.
我也没有从对Stack Overflow
的问题中得到明确的答案关于此问题.
I also didn't see a clear answer from a question on Stack Overflow
about this issue.
我基本上想摆脱所有Pipeline
内容:
I basically want to get rid of all the Pipeline
stuff:
$ docker top 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2 -eo pid,comm
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Check Style)
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ lintcheck.sh
--------LINT RESULTS--------
********ALL TESTS PASSED*******
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check Syntax)
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ syntaxcheck.sh
--------SYNTAX RESULTS--------
********ALL TESTS PASSED*******
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Generate Puppet Auth Token)
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ gentoken.sh
--------GENERATING PUPPET ACCESS TOKEN--------
Token generated successfully.
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2
$ docker rm -f 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
Finished: SUCCESS
推荐答案
先决条件:
- Pipeline: Job plugin version 2.18 or above
- Simple Theme plugin
转到Manage Jenkins
> Configure System
> Theme
.在Extra CSS
字段中输入以下内容
Go to Manage Jenkins
> Configure System
> Theme
. In Extra CSS
field put the following
.pipeline-annotated {
display: none;
}
点击保存.
此后,您将不再看到任何[Pipeline]日志.
After that you will not see any [Pipeline] logs anymore.
这篇关于抑制Jenkins中的脚本化管道输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!