Package io.jenkins.plugins.dotnet
Class DotNetWrapper.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BuildWrapper>
hudson.tasks.BuildWrapperDescriptor
io.jenkins.plugins.dotnet.DotNetWrapper.DescriptorImpl
- Enclosing class:
- DotNetWrapper
@Extension
@Symbol("withDotNet")
public static class DotNetWrapper.DescriptorImpl
extends BuildWrapperDescriptor
The descriptor for the .NET wrapper.
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckSdk
(String value, Item item) Checks that a value is a valid .NET SDK name.doFillSdkItems
(Item item) Fills a listbox with the available .NET SDKs.Gets the display name for the .NET wrapper (as used in the project configuration UI).boolean
isApplicable
(AbstractProject<?, ?> item) Determines whether the .NET wrapper is applicable.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
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
doCheckSdk
@NonNull @POST public FormValidation doCheckSdk(@CheckForNull @QueryParameter String value, @CheckForNull @AncestorInPath Item item) Checks that a value is a valid .NET SDK name.Because the value is set from a list box (so selecting invalid values is not possible), this only ensures that it's filled.
- Parameters:
value
- The value to check.item
- The item being configured.- Returns:
- The validation result.
-
doFillSdkItems
Fills a listbox with the available .NET SDKs.- Parameters:
item
- The item being configured.- Returns:
- A suitably filled listbox model.
-
getDisplayName
Gets the display name for the .NET wrapper (as used in the project configuration UI).- Overrides:
getDisplayName
in classDescriptor<BuildWrapper>
- Returns:
- "With .NET", or a localized equivalent.
-
isApplicable
Determines whether the .NET wrapper is applicable.- Specified by:
isApplicable
in classBuildWrapperDescriptor
- Parameters:
item
- The project context.- Returns:
true
if .NET SDK installations have been configured;false
otherwise.
-