简体   繁体   中英

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:

def matcher = manager.getLogMatcher(regex);

and then use the Regex in Groovy to do analysis

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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