如何在詹金斯管道控制台输出中抑制源脚本行回显? [英] How to suppress source script lines echo in jenkins pipeline console output?

查看:15
本文介绍了如何在詹金斯管道控制台输出中抑制源脚本行回显?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Jenkins 中编写一个管道作业,它在管道控制台输出中显示下游作业的输出控制台.到目前为止,该作业正在运行,但由于管道作业本身添加到输出中的所有回声线,输出真的很难读取.

I am writing a pipeline job in Jenkins which shows the output console of a downstream job in the pipeline console output. The job is working so far but the output is really hard to read due to all the echo lines added to the output by the pipeline job itself.

Started by user john.doe@cdf.com
[Pipeline] Allocate node : Start
Running on swqa-pr-prod-slave-1 in /srv/jenkins-slave/workspace/UUT Automated Regression - 1.20
[Pipeline] node {
[Pipeline] echo

[Pipeline] echo
/////////////////////////////////////////////////
[Pipeline] echo
                Start Execution                  
[Pipeline] echo
/////////////////////////////////////////////////
[Pipeline] echo

[Pipeline] echo

[Pipeline] [monitor] echo
[monitor] [EnvInject] - Loading node environment variables.
[Pipeline] [monitor] echo
[monitor] Building remotely on swqa-pr-prod-slave-1 (pr-prod-linux-slaves) in workspace /srv/jenkins-slave/workspace/Process Map Components Lock Down - 1.00
[Pipeline] [monitor] echo
[monitor] [EnvInject] - Injecting environment variables from a build step.
[Pipeline] [monitor] echo
[monitor] [EnvInject] - Injecting as environment variables the properties content 
[Pipeline] [monitor] echo
[monitor] componentsLockDownScript=RegressionComponentsLockDown.py
[Pipeline] [monitor] echo
[monitor] modifyProcessMapXmlScript=ModifyXmlDom-1.20.py
[Pipeline] [monitor] echo
[monitor] uutAndNodePropertiesFile=DL380G8PR2-NodeData-(203).properties
[Pipeline] [monitor] echo
[monitor] 
[Pipeline] [monitor] echo
[monitor] [EnvInject] - Variables injected successfully.

管道插件、Groovy 或 Jenkins 中是否有选项、配置、命令或任何内容可以让我抑制所有额外的回声"以使控制台输出更具可读性?

Is there an option, configuration, command or anything in the pipeline plugin or in Groovy or in Jenkins to allow me suppress all the extra "echoing" to make the console output more readable?

推荐答案

你真正要找的是 JENKINS-26124.显然,您对此有某种解决方法,但其实现存在缺陷,我们在问题中看不到.

What you are really looking for is JENKINS-26124. Apparently you have some kind of workaround for this, but there is a flaw in its implementation, which we cannot see in the question.

这篇关于如何在詹金斯管道控制台输出中抑制源脚本行回显?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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