Package hudson.plugins.msbuild
Class MsBuildInstaller
java.lang.Object
hudson.tools.ToolInstaller
hudson.plugins.msbuild.MsBuildInstaller
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstaller>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstaller
ToolInstaller.ToolInstallerEntry, ToolInstaller.ToolInstallerListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.tools.ToolInstaller
tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddownloadFile(URI uri, FilePath targetPath, TaskListener listener) Download a file from a URI to a target pathstatic StringensureArguments(String givenArguments, String[] argsToAdd) Ensures that the specified arguments are present in the given argument string.performInstallation(ToolInstallation tool, Node node, TaskListener log) Perform the installation of the Visual Studio Build ToolsvoidsetAdditionalArguments(String additionalArguments) voidsetSelectedVersion(String selectedVersion) voidsetVsconfig(String vsconfig) Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
-
Constructor Details
-
MsBuildInstaller
-
-
Method Details
-
getSelectedVersion
-
setSelectedVersion
-
getAdditionalArguments
-
setAdditionalArguments
-
setVsconfig
-
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:
performInstallationin classToolInstaller- Parameters:
tool- ToolInstallationnode- Nodelog- TaskListener- Returns:
- FilePath
- Throws:
IOExceptionInterruptedException
-
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- URItargetPath- FilePathlistener- TaskListener- Throws:
IOException
-
ensureArguments
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 stringargsToAdd- array of arguments to ensure presence- Returns:
- the modified argument string with all specified arguments included
-