Package io.jenkins.plugins.har
Class HarnessCliWrapper
java.lang.Object
hudson.tasks.BuildWrapper
jenkins.tasks.SimpleBuildWrapper
io.jenkins.plugins.har.HarnessCliWrapper
- All Implemented Interfaces:
ExtensionPoint,Describable<BuildWrapper>
Build Environment wrapper that sets up Harness CLI (hc) for the entire Freestyle build.
Appears as the "Set up Harness CLI environment" checkbox under Build Environment in a Freestyle job configuration.
When enabled, it sets the "HARNESS_CLI_PATH" environment
variable for every build step and shell script in the build — so you can call hc
directly in any Execute Shell step without specifying the full path.
This is the Freestyle equivalent of the Pipeline directive:
tools { harnessCli 'harness-cli' }
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.DisposerNested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.EnvironmentNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetHarnessCliInstallation(String harnessCliInstallation) voidsetUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUpMethods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUpMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
HarnessCliWrapper
@DataBoundConstructor public HarnessCliWrapper()
-
-
Method Details
-
getHarnessCliInstallation
-
setHarnessCliInstallation
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException- Overrides:
setUpin classSimpleBuildWrapper- Throws:
IOExceptionInterruptedException
-