显示上游作业中下游作业的控制台输出 [英] Show console output of a downstream job in upstream job

查看:135
本文介绍了显示上游作业中下游作业的控制台输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jenkins。

I'm using Jenkins.

Jenkins有一个upstrea作业:Aelves
Jenkins有一个下游作业:B

Jenkins has a upstrea job : A
Jenkins has a downstream job : B

A的控制台日志输出为:

A's console log output is:

1
2
3

B的控制台日志输出是:

B's console log output is:

A
B
C

我想得到的是:

有任何方式,我可以得到作业B在作业A的控制台日志中的控制台输出,然后做出决定是否JOBA成功(使用日志解析/ grep关键字作为失败者/错误等)。

IS there any way, I can get the console output of job B in Job A's console log and THEN, make a decision whether the JOB "A" was successful or not (using log parsing/grep a keyword for failuer/errors etc).

推荐答案

不知道你想要达到什么,但它看起来很有瑕疵。查看以下方法是否符合您的需求:通过作业A 启动作业B / Parameterized + Trigger + Pluginrel =nofollow>参数化触发器插件作为构建步骤。您可以选择 A 等待 B ,然后根据 B 的选项调整 A

Not sure what you are trying to achieve, but it looks rather contrived. See if the following approach fits your needs: start Job B from Job A via Parameterized Trigger Plugin as a build step. There is an option for A to wait for B and then adjust build result for A depending on that of B.

这篇关于显示上游作业中下游作业的控制台输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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