Package hudson.plugins.cmake
Class CmakeInstaller
java.lang.Object
hudson.tools.ToolInstaller
hudson.tools.DownloadFromUrlInstaller
hudson.plugins.cmake.CmakeInstaller
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstaller>
Automatic Cmake installer from cmake.org.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classRepresents the de-serialized JSON data file containing all installable Cmake versions.static classstatic final classNested classes/interfaces inherited from class hudson.tools.DownloadFromUrlInstaller
DownloadFromUrlInstaller.Installable, DownloadFromUrlInstaller.InstallableList, DownloadFromUrlInstaller.NodeSpecificInstallableNested 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.DownloadFromUrlInstaller
idFields inherited from class hudson.tools.ToolInstaller
tool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilePathfindPullUpDirectory(FilePath root) Overwritten since 3.x archives from cmake.org have more than just the"cmake-<version>"directorygetInstallable(ToolInstallation toolInstallation, String nodeOsFamilyJvm, String nodeOsArchJvm) Overloaded to select the OS-ARCH specific variant and to fill in the variant´s URL.performInstallation(ToolInstallation tool, Node node, TaskListener log) Methods inherited from class hudson.tools.DownloadFromUrlInstaller
getInstallable, isUpToDateMethods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
-
Constructor Details
-
CmakeInstaller
-
-
Method Details
-
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Overrides:
performInstallationin classDownloadFromUrlInstaller- Throws:
IOExceptionInterruptedException
-
getInstallable
public DownloadFromUrlInstaller.Installable getInstallable(ToolInstallation toolInstallation, String nodeOsFamilyJvm, String nodeOsArchJvm) throws IOException Overloaded to select the OS-ARCH specific variant and to fill in the variant´s URL.- Parameters:
toolInstallation- the ToolInstallation to get anInstallablefornodeOsFamilyJvm- the value of the JVM system property "os.name" of the node,nodeOsArchJvm- the value of the JVM system property "os.arch" of the node- Returns:
- null if no such matching variant is found.
- Throws:
AbortException- if no matching download URL is knownIOException
-
findPullUpDirectory
Overwritten since 3.x archives from cmake.org have more than just the"cmake-<version>"directory- Overrides:
findPullUpDirectoryin classDownloadFromUrlInstaller- Throws:
IOExceptionInterruptedException
-