统一Jenkins控制台日志

时间:2014-10-10 11:03:23

标签: jenkins jenkins-plugins

我们每晚都有我们的项目,每个项目都有几个下游工作,我配置Jenkins在主要工作结束时发送构建日志。问题是主控制台仅显示其自己作业的详细信息,并从下游作业中显示:

Waiting for the completion of "Project BBB"
"Project BBB" #41 completed. Result was SUCCESS

有什么方法可以让它显示下游工作的细节吗?

Started by upstream project "Project AAA" build number 38
originally caused by:
Started by user "User Name"
Building in workspace C:\WORKSPACE\Project BBB
Reverting C:\WORKSPACE\Project BBB\. to depth infinity with ignoreExternals: true
Updating https://111.111.111.111/svn/Project BBB at revision '2014-10-10T11:00:11.785 +0100'
At revision 43143
no change for https://111.111.111.111/svn/Project BBB since the previous build
Notifying upstream projects of job completion
Finished: SUCCESS

或者至少发送下游作业build.log吗?

1 个答案:

答案 0 :(得分:1)

每个已完成作业的构建日志都以纯文本形式提供:

http://<jenkins_server>/job/<job_name>/<job_number>/consoleText

在您的下游作业中,您可以将此日志提取到一个文件中,只需在下游的控制台日志中cat