Class HarnessCliSupport

java.lang.Object
io.jenkins.plugins.har.cli.HarnessCliSupport

public final class HarnessCliSupport extends Object
Shared logic for running the Harness CLI from the harness Pipeline step and the Freestyle build step.

Credentials are resolved per command, first match wins:

  1. --profile in the command, or HARNESS_PROFILE in the build environment (for example a profile saved earlier with harness auth login);
  2. HARNESS_API_KEY in the build environment (for example from withCredentials);
  3. the API token from Manage Jenkins → System → Harness CLI Configuration, passed as environment variables.
The plugin never runs auth login or auth logout itself, so concurrent builds and builds spanning several agents do not share credential state.

For installer-managed installations each workspace gets its own CLI home, so a profile saved by harness auth login in one job is never visible to other jobs on the same agent.