Class CoverageStep.Descriptor
java.lang.Object
hudson.model.Descriptor<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.StepDescriptor
io.jenkins.plugins.coverage.metrics.steps.CoverageStep.Descriptor
- Enclosing class:
- CoverageStep
@Extension
public static class CoverageStep.Descriptor
extends org.jenkinsci.plugins.workflow.steps.StepDescriptor
Descriptor for this step: defines the context and the UI labels.
-
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) doCheckId(BuildableItem project, String id) Performs on-the-fly validation of the ID.doCheckSourceCodeEncoding(BuildableItem project, String sourceCodeEncoding) Performs on-the-fly validation on the character encoding.Returns a model with allCoverageRecorder.ChecksAnnotationScopescopes.Returns a model with all available charsets.Returns a model with allSourceCodeRetentionstrategies.Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepDescriptor
all, allMeta, byFunctionName, checkContextAvailability, defineArguments, getMetaStepArgumentType, getProvidedContext, isAdvanced, isMetaStep, metaStepsOf, newInstance, takesImplicitBlockArgument, uninstantiateMethods 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, getId, 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()
-
-
Method Details
-
getFunctionName
- Specified by:
getFunctionNamein classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<org.jenkinsci.plugins.workflow.steps.Step>
-
getRequiredContext
- Specified by:
getRequiredContextin classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-
argumentsToString
- Overrides:
argumentsToStringin classorg.jenkinsci.plugins.workflow.steps.StepDescriptor
-
doFillSourceCodeRetentionItems
Returns a model with allSourceCodeRetentionstrategies.- Returns:
- a model with all
SourceCodeRetentionstrategies.
-
doFillChecksAnnotationScopeItems
Returns a model with allCoverageRecorder.ChecksAnnotationScopescopes.- Returns:
- a model with all
CoverageRecorder.ChecksAnnotationScopescopes.
-
doFillSourceCodeEncodingItems
Returns a model with all available charsets.- Returns:
- a model with all available charsets
-
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
-
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
-