Class HarnessGlobalConfiguration

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension @Symbol("harnessCliConfig") public class HarnessGlobalConfiguration extends GlobalConfiguration
Global Jenkins configuration for the Harness CLI plugin. Appears under Manage Jenkins → Configure System → Harness CLI Configuration.

These credentials are used by the HcStep pipeline step to automatically run hc auth login before the first hc command in each build, so individual pipeline steps do not need to handle authentication themselves.

TODO: Open Manage Jenkins → Configure System and fill in:

  • API URL — Harness API endpoint (default: https://app.harness.io)
  • API Token — a Personal Access Token (PAT) from Harness (mandatory)
  • Org ID — Harness organisation ID (optional)
  • Project ID — Harness project ID (optional)