Class GrepParser.Descriptor
java.lang.Object
hudson.model.Descriptor<Tool>
io.jenkins.plugins.analysis.core.model.Tool.ToolDescriptor
io.jenkins.plugins.analysis.warnings.GrepParser.Descriptor
- Enclosing class:
GrepParser
@Symbol("grepParser")
@Extension
public static class GrepParser.Descriptor
extends Tool.ToolDescriptor
Descriptor for this static analysis tool.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckExample(BuildableItem project, String example, String regexp, String severity, String message) Validates the example text against the configured regexp (live preview in the UI).doCheckExcludePattern(AbstractProject<?, ?> project, String excludePattern) Performs on-the-fly validation on the ant pattern for excluded files.doCheckIncludePattern(AbstractProject<?, ?> project, String includePattern) Performs on-the-fly validation on the ant pattern for included files.doCheckRegexp(BuildableItem project, String regexp) Performs on-the-fly validation on the regular expression.Returns the available severity levels for the drop-down in the UI.Returns aStaticAnalysisLabelProviderthat will render all tool specific labels.Methods inherited from class io.jenkins.plugins.analysis.core.model.Tool.ToolDescriptor
doCheckId, getHelp, getIcon, getId, getName, getSymbolName, getUrl, isPostProcessingEnabledMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
Descriptor
public Descriptor()Creates the descriptor instance.
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<Tool>
-
getLabelProvider
Description copied from class:Tool.ToolDescriptorReturns aStaticAnalysisLabelProviderthat will render all tool specific labels.- Overrides:
getLabelProviderin classTool.ToolDescriptor- Returns:
- a tool specific
StaticAnalysisLabelProvider
-
doCheckIncludePattern
@POST public FormValidation doCheckIncludePattern(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String includePattern) Performs on-the-fly validation on the ant pattern for included files.- Parameters:
project- the project that is configuredincludePattern- the file pattern- Returns:
- the validation result
-
doCheckExcludePattern
@POST public FormValidation doCheckExcludePattern(@AncestorInPath AbstractProject<?, ?> project, @QueryParameter String excludePattern) Performs on-the-fly validation on the ant pattern for excluded files.- Parameters:
project- the project that is configuredexcludePattern- the file pattern- Returns:
- the validation result
-
doCheckRegexp
@POST public FormValidation doCheckRegexp(@AncestorInPath BuildableItem project, @QueryParameter String regexp) Performs on-the-fly validation on the regular expression.- Parameters:
project- the project that is configuredregexp- the regular expression to validate- Returns:
- the validation result
-
doFillSeverityItems
Returns the available severity levels for the drop-down in the UI.- Returns:
- a list-box model with all predefined severity options
-
doCheckExample
@POST public FormValidation doCheckExample(@AncestorInPath BuildableItem project, @QueryParameter String example, @QueryParameter String regexp, @QueryParameter String severity, @QueryParameter String message) Validates the example text against the configured regexp (live preview in the UI). The message template is also applied so that captured groups can be verified.- Parameters:
project- the project that is configuredexample- example text to scanregexp- the regular expression to matchseverity- the severity to assign to matchesmessage- the optional message template; when blank the matched line is used as-is- Returns:
- validation result
-