Class AnalysisStepDescriptor
java.lang.Object
hudson.model.Descriptor<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.StepDescriptor
io.jenkins.plugins.analysis.core.steps.AnalysisStepDescriptor
- Direct Known Subclasses:
PublishIssuesStep.Descriptor
,RecordIssuesStep.Descriptor
,ScanForIssuesStep.Descriptor
public abstract class AnalysisStepDescriptor
extends org.jenkinsci.plugins.workflow.steps.StepDescriptor
Descriptor base class for all analysis steps. Provides generic validation methods, and list box models for UI select
elements.
- Author:
- Ullrich Hafner
-
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 TypeMethodDescriptionargumentsToString
(Map<String, Object> namedArgs) doCheckHealthy
(BuildableItem project, int healthy, int unhealthy) Performs on-the-fly validation of the health report thresholds.doCheckId
(BuildableItem project, String id) Performs on-the-fly validation of the ID.doCheckReportEncoding
(BuildableItem project, String reportEncoding) Performs on-the-fly validation of the character encoding.doCheckSourceCodeEncoding
(BuildableItem project, String sourceCodeEncoding) Performs on-the-fly validation on the character encoding.doCheckUnhealthy
(BuildableItem project, int healthy, int unhealthy) Performs on-the-fly validation of the health report thresholds.doFillMinimumSeverityItems
(BuildableItem project) Returns a model with all available severity filters.doFillReferenceJobNameItems
(BuildableItem project) Deprecated.not used anymore, part of forensics pluginReturns a model with all available charsets.doFillTrendChartTypeItems
(BuildableItem project) Returns a model with all aggregation trend chart positions.Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepDescriptor
all, allMeta, byFunctionName, checkContextAvailability, defineArguments, getFunctionName, getMetaStepArgumentType, getProvidedContext, getRequiredContext, isAdvanced, isMetaStep, metaStepsOf, newInstance, takesImplicitBlockArgument, uninstantiate
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
Constructor Details
-
AnalysisStepDescriptor
public AnalysisStepDescriptor()
-
-
Method Details
-
doFillSourceCodeEncodingItems
Returns a model with all available charsets.- Parameters:
project
- the project that is configured- Returns:
- a model with all available charsets
-
doCheckReportEncoding
@POST public FormValidation doCheckReportEncoding(@AncestorInPath BuildableItem 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 BuildableItem 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
-
doFillMinimumSeverityItems
Returns a model with all available severity filters.- Parameters:
project
- the project that is configured- Returns:
- a model with all available severity filters
-
doFillReferenceJobNameItems
@Deprecated @POST public ComboBoxModel doFillReferenceJobNameItems(@AncestorInPath BuildableItem project) Deprecated.not used anymore, part of forensics pluginReturns the model with the possible reference jobs.- Parameters:
project
- the project that is configured- Returns:
- the model with the possible reference jobs
-
doCheckHealthy
@POST public FormValidation doCheckHealthy(@AncestorInPath BuildableItem 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 BuildableItem 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
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
-
doCheckId
@POST public FormValidation doCheckId(@AncestorInPath BuildableItem 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
-
argumentsToString
- Overrides:
argumentsToString
in classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-