Re: Groovy postbuild plugin: What does containLog check

2017-09-28 Thread Andreas Tscharner
Hello again, On 27.09.2017 17:06, Slide wrote: I believe the match is done line by line and is done using a regular expression, so you may need to play around with that. Thank you! Your are right. The following regex works: if (manager.logContains("(.*)(FAILURES!)(.*)")) { manager.b

Re: Groovy postbuild plugin: What does containLog check

2017-09-27 Thread Slide
I believe the match is done line by line and is done using a regular expression, so you may need to play around with that. On Wed, Sep 27, 2017, 07:44 Andreas Tscharner wrote: > Hello World, > Instead of the textFinder I am using the Groovy postbuild plugin to check > if some tests (hand written

Groovy postbuild plugin: What does containLog check

2017-09-27 Thread Andreas Tscharner
Hello World, Instead of the textFinder I am using the Groovy postbuild plugin to check if some tests (hand written) failed. I try the following: if (manager.logContains("FAILURES!")) {   manager.buildUnstable() } That does not seem to work however. So my question: What text exactly does logCo