gpt4 book ai didi

jenkins - 如何抑制jenkins管道控制台输出中的源脚本行回显?

转载 作者:行者123 更新时间:2023-12-04 08:51:29 24 4
gpt4 key购买 nike

我正在Jenkins中编写管道作业,该管道作业在管道控制台输出中显示了下游作业的输出控制台。到目前为止,该作业正在运行,但是由于管道作业本身将所有回显线添加到了输出中,因此输出实际上很难读取。

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中是否有选项,配置,命令或其他任何内容,可让我抑制所有多余的“回声”,从而使控制台输出更具可读性?

最佳答案

您真正想要的是JENKINS-26124。显然,您对此有某种解决方法,但是它的实现存在缺陷,我们无法在问题中看到。

关于jenkins - 如何抑制jenkins管道控制台输出中的源脚本行回显?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36947567/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com