Hi,
I've been struggling for days in making the multiline build log indication work. I couldn’t find any example in the net, I had it working in a Groovy console but not in Jenkins. *This is the Jenkins log. I want to detect the yellow part – if I find these two yellow strings are the indication of the failure:* *22:14:36* 2017-07-10 22:14:36 Test INFO: busy: -E- T:78008253 *22:14:36* 2017-07-10 22:14:36 Test INFO: busy: Segmentation fault *22:14:36* 2017-07-10 22:14:36 Test INFO: busy: Error! failed to run driver tests *22:14:36* 2017-07-10 22:14:36 Test INFO: busy: /opt/cve_driver_test *22:14:36* 2017-07-10 22:14:36 Test INFO: busy: Return1Code I tried to find this pattern in a groovy console and succeeded: def pattern = "(?s)Segmentation fault(.*)busy: Error! failed to run driver tests" def example1 = text.find(pattern) //=> found! *How do I make it work Jenkins?* *Thanks!* -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f71e269b-1929-46ee-80a5-874f8e69b72c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.