Class HarnessCliWrapper

All Implemented Interfaces:
ExtensionPoint, Describable<BuildWrapper>

public class HarnessCliWrapper extends SimpleBuildWrapper
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' }