Class IssuesRecorder.Descriptor
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Publisher>
-
- io.jenkins.plugins.analysis.core.steps.IssuesRecorder.Descriptor
-
- Enclosing class:
- IssuesRecorder
@Extension @Symbol("recordIssues") public static class IssuesRecorder.Descriptor extends BuildStepDescriptor<Publisher>
Descriptor for this step: defines the context and the UI elements.
-
-
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 Constructor Description Descriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAliases()
Retain backward compatibility.FormValidation
doCheckHealthy(AbstractProject<?,?> project, int healthy, int unhealthy)
Performs on-the-fly validation of the health report thresholds.FormValidation
doCheckId(AbstractProject<?,?> project, String id)
Performs on-the-fly validation of the ID.FormValidation
doCheckReportEncoding(AbstractProject<?,?> project, String reportEncoding)
Performs on-the-fly validation of the character encoding.FormValidation
doCheckSourceCodeEncoding(AbstractProject<?,?> project, String sourceCodeEncoding)
Performs on-the-fly validation on the character encoding.FormValidation
doCheckUnhealthy(AbstractProject<?,?> project, int healthy, int unhealthy)
Performs on-the-fly validation of the health report thresholds.ListBoxModel
doFillMinimumSeverityItems(AbstractProject<?,?> project)
Returns a model with all available severity filters.ComboBoxModel
doFillSourceCodeEncodingItems(AbstractProject<?,?> project)
Returns a model with all available charsets.ListBoxModel
doFillTrendChartTypeItems(AbstractProject<?,?> project)
Returns a model with all aggregation trend chart positions.String
getDisplayName()
boolean
isApplicable(Class<? extends AbstractProject> jobType)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
addAliases
@Initializer(before=PLUGINS_STARTED) public static void addAliases()
Retain backward compatibility.
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Publisher>
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Publisher>
-
doCheckId
@POST public FormValidation doCheckId(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String id)
Performs on-the-fly validation of the ID.- Parameters:
project
- the project that is configuredid
- the ID of the tool- Returns:
- the validation result
-
doFillSourceCodeEncodingItems
@POST public ComboBoxModel doFillSourceCodeEncodingItems(@AncestorInPath AbstractProject<?,?> project)
Returns a model with all available charsets.- Parameters:
project
- the project that is configured- Returns:
- a model with all available charsets
-
doFillMinimumSeverityItems
@POST public ListBoxModel doFillMinimumSeverityItems(@AncestorInPath AbstractProject<?,?> project)
Returns a model with all available severity filters.- Parameters:
project
- the project that is configured- Returns:
- a model with all available severity filters
-
doCheckReportEncoding
@POST public FormValidation doCheckReportEncoding(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String reportEncoding)
Performs on-the-fly validation of the character encoding.- Parameters:
project
- the project that is configuredreportEncoding
- the character encoding- Returns:
- the validation result
-
doCheckSourceCodeEncoding
@POST public FormValidation doCheckSourceCodeEncoding(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String sourceCodeEncoding)
Performs on-the-fly validation on the character encoding.- Parameters:
project
- the project that is configuredsourceCodeEncoding
- the character encoding- Returns:
- the validation result
-
doCheckHealthy
@POST public FormValidation doCheckHealthy(@AncestorInPath AbstractProject<?,?> project, @QueryParameter int healthy, @QueryParameter int unhealthy)
Performs on-the-fly validation of the health report thresholds.- Parameters:
project
- the project that is configuredhealthy
- the healthy thresholdunhealthy
- the unhealthy threshold- Returns:
- the validation result
-
doCheckUnhealthy
@POST public FormValidation doCheckUnhealthy(@AncestorInPath AbstractProject<?,?> project, @QueryParameter int healthy, @QueryParameter int unhealthy)
Performs on-the-fly validation of the health report thresholds.- Parameters:
project
- the project that is configuredhealthy
- the healthy thresholdunhealthy
- the unhealthy threshold- Returns:
- the validation result
-
doFillTrendChartTypeItems
@POST public ListBoxModel doFillTrendChartTypeItems(@AncestorInPath AbstractProject<?,?> project)
Returns a model with all aggregation trend chart positions.- Parameters:
project
- the project that is configured- Returns:
- a model with all aggregation trend chart positions
-
-