Class MsBuildInstaller

java.lang.Object
hudson.tools.ToolInstaller
hudson.plugins.msbuild.MsBuildInstaller
All Implemented Interfaces:
ExtensionPoint, Describable<ToolInstaller>

public class MsBuildInstaller extends ToolInstaller
  • Constructor Details

    • MsBuildInstaller

      @DataBoundConstructor public MsBuildInstaller(String label)
  • Method Details

    • getSelectedVersion

      public String getSelectedVersion()
    • setSelectedVersion

      @DataBoundSetter public void setSelectedVersion(String selectedVersion)
    • getAdditionalArguments

      public String getAdditionalArguments()
    • setAdditionalArguments

      @DataBoundSetter public void setAdditionalArguments(String additionalArguments)
    • setVsconfig

      @DataBoundSetter public void setVsconfig(String vsconfig)
    • getVsconfig

      public String getVsconfig()
    • performInstallation

      public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException
      Perform the installation of the Visual Studio Build Tools
      Specified by:
      performInstallation in class ToolInstaller
      Parameters:
      tool - ToolInstallation
      node - Node
      log - TaskListener
      Returns:
      FilePath
      Throws:
      IOException
      InterruptedException
    • downloadFile

      public static void downloadFile(URI uri, FilePath targetPath, TaskListener listener) throws IOException
      Download a file from a URI to a target path
      Parameters:
      uri - URI
      targetPath - FilePath
      listener - TaskListener
      Throws:
      IOException
    • ensureArguments

      public static String ensureArguments(String givenArguments, String[] argsToAdd)
      Ensures that the specified arguments are present in the given argument string. If an argument is missing, it is appended to the string.
      Parameters:
      givenArguments - the initial argument string
      argsToAdd - array of arguments to ensure presence
      Returns:
      the modified argument string with all specified arguments included