-
Improvement
-
Resolution: Not A Defect
-
Major
I'm trying to add a new dynamic parser using the gui (via jenkins/configure). According to:
http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson.plugins/warnings/2.4/hudson/plugins/warnings/parser/Warning.java
There's an overloaded Warnings constructor that allows you to specify a priority, but it must be of type Priority. I found this doc too:
http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson.plugins/warnings/2.4/hudson/plugins/warnings/util/model/Priority.java#Priority.valueOf%28java.lang.String%29
I can't add the Priority enum import for some reason, adding the following gives me an error:
import hudson.plugins.warnings.util.model.Priority
Error:
This is not a valid Groovy script: startup failed:
Script1.groovy: 3: unable to resolve class hudson.plugins.warnings.util.model.Priority
@ line 3, column 1.
import hudson.plugins.warnings.util.model.Priority
^
1 error
Could there be an easy way to add priority to the dynamic parser?