Package io.jenkins.plugins.har.cli
Class HarnessCliInstallation
java.lang.Object
hudson.tools.ToolInstallation
io.jenkins.plugins.har.cli.HarnessCliInstallation
- All Implemented Interfaces:
ExtensionPoint,Describable<ToolInstallation>,EnvironmentSpecific<HarnessCliInstallation>,NodeSpecific<HarnessCliInstallation>,Serializable
public class HarnessCliInstallation
extends ToolInstallation
implements NodeSpecific<HarnessCliInstallation>, EnvironmentSpecific<HarnessCliInstallation>
Represents a Harness CLI (hc) tool installation in Jenkins.
Admins configure this under Manage Jenkins → Tools → Harness CLI installations.
The installation directory is exposed as the "HARNESS_CLI_PATH" environment variable
so that HcStep can locate the binary at runtime.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tools.ToolInstallation
ToolInstallation.ToolConverterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEnvironment variable set to the directory that contains the hc binary. -
Constructor Summary
ConstructorsConstructorDescriptionHarnessCliInstallation(String name, String home, List<? extends ToolProperty<?>> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvVars(EnvVars env) forEnvironment(EnvVars environment) forNode(Node node, TaskListener log) Methods inherited from class hudson.tools.ToolInstallation
all, getHome, getName, getProperties, readResolve, toString, translate, translate, translateFor, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
HARNESS_CLI_PATH
Environment variable set to the directory that contains the hc binary.- See Also:
-
-
Constructor Details
-
HarnessCliInstallation
@DataBoundConstructor public HarnessCliInstallation(String name, String home, List<? extends ToolProperty<?>> properties)
-
-
Method Details
-
forEnvironment
- Specified by:
forEnvironmentin interfaceEnvironmentSpecific<HarnessCliInstallation>
-
forNode
public HarnessCliInstallation forNode(@NonNull Node node, TaskListener log) throws IOException, InterruptedException - Specified by:
forNodein interfaceNodeSpecific<HarnessCliInstallation>- Throws:
IOExceptionInterruptedException
-
buildEnvVars
- Overrides:
buildEnvVarsin classToolInstallation
-