Class HarnessCliWrapper

All Implemented Interfaces:
ExtensionPoint, Describable<BuildWrapper>

public class HarnessCliWrapper extends SimpleBuildWrapper
Build Environment wrapper that sets up the Harness CLI (harness) 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 (and, for installer-managed installations, "HARNESS_CLI_HOME" pointing to a CLI home private to the workspace) for every build step and shell script in the build, so an Execute Shell step can run "$HARNESS_CLI_PATH/harness". API credentials are not exported to shell steps.

This is the Freestyle equivalent of the Pipeline directive:


 tools { harnessCli 'harness-cli' }