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 from harness/cli GitHub releases and installs it on Jenkins agents.
Each release publishes a bundle containing the core harness binary and the
harness-har Artifact Registry plugin, plus a SHA-256 checksums file:
harness-bundle_{version}_{os}_{arch}.tar.gz (linux, darwin)
harness-bundle_{version}_windows_{arch}.zip
harness_{version}_checksums.txt
OS : linux | darwin | windows
Arch : amd64 | arm64
After extraction the installer registers harness-har with
harness install plugin, using <tool home>/cli-home as the CLI home so the
installation does not depend on, or modify, the agent user's ~/.harness.
When version is left blank the installer queries the GitHub Releases API
to determine the latest version tag, at most once an hour per controller.
-
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
-