-
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.
[JENKINS-21569] Expose current input line in groovy script
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
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.