Class DotNetWrapper.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<BuildWrapper>
hudson.tasks.BuildWrapperDescriptor
io.jenkins.plugins.dotnet.DotNetWrapper.DescriptorImpl
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
DotNetWrapper

@Extension @Symbol("withDotNet") public static class DotNetWrapper.DescriptorImpl extends BuildWrapperDescriptor
The descriptor for the .NET wrapper.
  • 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

      @NonNull @POST public ListBoxModel doFillSdkItems(@CheckForNull @AncestorInPath Item item)
      Fills a listbox with the available .NET SDKs.
      Parameters:
      item - The item being configured.
      Returns:
      A suitably filled listbox model.
    • getDisplayName

      @NonNull public String getDisplayName()
      Gets the display name for the .NET wrapper (as used in the project configuration UI).
      Overrides:
      getDisplayName in class Descriptor<BuildWrapper>
      Returns:
      "With .NET", or a localized equivalent.
    • isApplicable

      public boolean isApplicable(@CheckForNull AbstractProject<?,?> item)
      Determines whether the .NET wrapper is applicable.
      Specified by:
      isApplicable in class BuildWrapperDescriptor
      Parameters:
      item - The project context.
      Returns:
      true if .NET SDK installations have been configured; false otherwise.