简体   繁体   English

Jenkins在奴隶上建立日志

[英]Jenkins Build log on slave

I am using a Master/Slave setup for doing builds. 我正在使用主/从设置进行构建。 This works fine, however I have a script that runs through the build log and pulls out the count of lines compiled (these are output in the log by the compiler). 这可以正常工作,但是我有一个脚本可以在构建日志中运行并提取已编译的行数(这些是编译器在日志中输出的)。

When this runs on the Master, the build log can be found, now it runs on the Slave, then the build log is not found. 在主服务器上运行时,可以找到构建日志,现在在从服务器上运行,则找不到构建日志。

This maybe a simple answer, but I can't see an answer for it here. 这可能是一个简单的答案,但是我在这里看不到答案。

Thanks in advance 提前致谢

It looks like I can get at the build log by using the Groovy Post Build plugin, as follows: 看来我可以使用Groovy Post Build插件获取构建日志,如下所示:

def matcher = manager.getLogMatcher(regex);

and then use the Regex in Groovy to do analysis 然后在Groovy中使用Regex进行分析

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM