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 (
harness) 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 HarnessStep 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 StringDirectory inside the tool home that the installer uses as "HARNESS_CLI_HOME".static final StringEnvironment variable the harness CLI reads to locate its home directory (registered plugins underbin/and their command specs underspec/).static final StringEnvironment variable set to the directory that contains the harness 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 harness binary.- See Also:
-
HARNESS_CLI_HOME
Environment variable the harness CLI reads to locate its home directory (registered plugins underbin/and their command specs underspec/).- See Also:
-
CLI_HOME_DIR
Directory inside the tool home that the installer uses as "HARNESS_CLI_HOME".- 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
-