Package io.jenkins.plugins.har
Class HarnessCliBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.har.HarnessCliBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep
Build step for running Harness CLI (hc) commands in Freestyle jobs.
Mirrors what the hc(...) Pipeline step does for Declarative/Scripted pipelines.
Auto-runs hc auth login once per agent, per build using credentials from
Manage Jenkins → Configure System → Harness CLI Configuration.
Example commands:
hc version hc artifact push rpm my-repo /path/to/file.rpm hc auth status
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidsetCommand(String command) voidsetHarnessCliInstallation(String harnessCliInstallation) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
HarnessCliBuilder
-
-
Method Details
-
getCommand
-
getHarnessCliInstallation
-
setCommand
-
setHarnessCliInstallation
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-