Class HarnessCliGitHubInstaller
java.lang.Object
hudson.tools.ToolInstaller
io.jenkins.plugins.har.cli.callables.HarnessCliGitHubInstaller
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstaller>
Downloads the Harness CLI (hc) binary from GitHub releases and installs it on Jenkins agents.
Release asset naming convention used by harness/harness-cli (e.g. v1.3.30):
hc_{version}_{os}_{arch}.tar.gz
OS : linux | mac-os | windows
Arch : x86_64 | arm64 | i386
e.g. hc_1.3.30_linux_x86_64.tar.gz
hc_1.3.30_mac-os_arm64.tar.gz
hc_1.3.30_windows_x86_64.tar.gz
When version is left blank the installer queries the GitHub Releases API
to determine the latest version tag.-
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 TypeMethodDescriptionperformInstallation(ToolInstallation tool, Node node, TaskListener log) voidsetVersion(String version) Methods inherited from class hudson.tools.ToolInstaller
appliesTo, getDescriptor, getLabel, preferredLocation, setTool
-
Constructor Details
-
HarnessCliGitHubInstaller
-
-
Method Details
-
getVersion
-
setVersion
-
performInstallation
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
performInstallationin classToolInstaller- Throws:
IOExceptionInterruptedException
-