-
Bug
-
Resolution: Fixed
-
Major
-
None
In a custom parser, the current input line number should be available (i.e. the line that matched the regex).
Otherwise you cannot add Warning annotations correctly to e.g. the console log, if a source file is not available for the warning.
Code changed in jenkins
User: Ulli Hafner
Path:
src/main/java/hudson/plugins/warnings/parser/DynamicParser.java
src/main/java/hudson/plugins/warnings/parser/GroovyExpressionMatcher.java
http://jenkins-ci.org/commit/warnings-plugin/fb9924a16dead75cdf8a73b811c4824b413a0a6d
Log:
[FIXED JENKINS-21569] Expose current line in groovy.
Added getCurrentLine() method for line based parsers.