Looks like there is some issue with pattern matching here, I have unit test
failure with “Build log indication” as follows:
“.*Failures: \d+.*” and “.*Errors: \d+.*”
Above pattern is not matched properly for build failures it is matching
following line:
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 1.058 sec (this
line does not contain any Failure or Error)
Another example is it matching successful “rsync” command in build log, which
has nothing to do with unit test failure and no pattern “Failure” or “Error”
matches to this line, this is strange.
I have no idea what and where things are going wrong, either pattern is not
correct or something to do with Build Failure Analyzer.
Any help in this regard.
Thanks,
Jhoom
-----Original Message-----
From: Tomas Westling <tomas.westl...@sonymobile.com>
To: jenkinsci-dev <jenkinsci-...@googlegroups.com>
Cc: jenkinsci-users <jenkinsci-users@googlegroups.com>; robert.sandell
<robert.sand...@sonymobile.com>; tomas.westling
<tomas.westl...@sonymobile.com>; jhoomsharabi <jhoomshar...@netscape.net>
Sent: Wed, Jan 9, 2013 12:03 pm
Subject: Re: Build failure analyzer pattern issue
Hello Jhoom,
the build failure analyzer uses Matcher.matches() to see if a regular
expression matches its target.
The reason for this is performance, we used find() earlier but we saw very long
scan times.
This means that you have to match the entire line, not just something that
exists in the line, e.g.
.*Cannot find parent.*
This would match for "Cannot find parent" anywhere in a line.
Br Tomas Westling
Sony Mobile Communications AB
On Tuesday, January 8, 2013 5:48:34 PM UTC+1, jhooms...@netscape.net wrote:
Hi,
I am trying to implement “build failure analyzer” plugin to my Jenkins projects
but it’s not working for me, say I am getting build issue like this:
Reason: Cannot find parent: net.java:jvnet-parent for project:
com.sun.jersey:jersey-project:pom:1.9.1 for project
com.sun.jersey:jersey-project:pom:1.9.1
I am trying to match pattern “Cannot find parent”, but looks like build failure
analyzer is not respecting this pattern or maybe I am giving wrong pattern
match. I am getting following output from build failure anyalyzer:
Identified problems
No identified problems
No problems were identified. If you know why this problem
occurred, please add a suitable Cause for it.
Can anyone help me out in this, it will be great help.
Thanks,
Jhoom