Class DotNetSDKInstaller

java.lang.Object
hudson.tools.ToolInstaller
io.jenkins.plugins.dotnet.DotNetSDKInstaller
All Implemented Interfaces:
ExtensionPoint, Describable<ToolInstaller>

public final class DotNetSDKInstaller extends ToolInstaller
A tool installer for downloading .NET SDK installation packages from microsoft.com.
  • Constructor Details

    • DotNetSDKInstaller

      @DataBoundConstructor public DotNetSDKInstaller(@CheckForNull String label)
      Creates a new .NET SDK installer.
      Parameters:
      label - A label expression identifying the agent(s) for which the installer is suitable.
  • Method Details

    • performInstallation

      @NonNull public FilePath performInstallation(@NonNull ToolInstallation tool, @NonNull Node node, @NonNull TaskListener log) throws IOException, InterruptedException
      Performs the installation for a .NET SDK, if not already done.
      Specified by:
      performInstallation in class ToolInstaller
      Parameters:
      tool - The SDK to install.
      node - The agent on which the SDK should be installed.
      log - The task listener to use for output.
      Returns:
      The SDK's installation location.
      Throws:
      IOException - When an I/O error occurs during processing.
      InterruptedException - When processing is interrupted.
    • isIncludePreview

      public boolean isIncludePreview()
      Determines whether .NET preview releases should be made available for installation.
      Returns:
      true if installation of .NET preview releases is allowed, false otherwise.
    • setIncludePreview

      @DataBoundSetter public void setIncludePreview(boolean includePreview)
      Determines whether .NET preview releases should be made available for installation.
      Parameters:
      includePreview - true to allow installation of .NET preview releases, false otherwise.
    • getRelease

      @CheckForNull public String getRelease()
      Gets the name of the .NET release containing the SDK to install.
      Returns:
      The name of the .NET release containing the SDK to install.
    • setRelease

      @DataBoundSetter public void setRelease(String release)
      Sets the name of the .NET release containing the SDK to install.
      Parameters:
      release - The name of the .NET release containing the SDK to install.
    • getSdk

      public String getSdk()
      Gets the name of the SDK to install.
      Returns:
      The name of the SDK to install.
    • setSdk

      @DataBoundSetter public void setSdk(String sdk)
      Sets the name of the SDK to install.
      Parameters:
      sdk - The name of the SDK to install.
    • getUrl

      public String getUrl()
      Gets the URL for the download package of the SDK to install.
      Returns:
      The URL for the download package of the SDK to install.
    • setUrl

      @DataBoundSetter public void setUrl(String url)
      Sets the URL for the download package of the SDK to install.
      Parameters:
      url - The URL for the download package of the SDK to install.
    • getVersion

      public String getVersion()
      Gets the name of the .NET version containing the SDK to install.
      Returns:
      The name of the .NET version containing the SDK to install.
    • setVersion

      @DataBoundSetter public void setVersion(String version)
      Sets the name of the .NET version containing the SDK to install.
      Parameters:
      version - The name of the .NET version containing the SDK to install.