Class HarnessStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
io.jenkins.plugins.har.cli.HarnessStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

public class HarnessStep extends org.jenkinsci.plugins.workflow.steps.Step
Pipeline step harness(...) that runs the Harness CLI (harness) binary.

Each invocation authenticates with HARNESS_API_KEY from the build environment (e.g. withCredentials) or, by default, the credentials configured under Manage Jenkins → System → Harness CLI Configuration (see HarnessCliSupport).

Example Declarative Pipeline:


 pipeline {
     agent any
     tools { harnessCli 'harness-cli' }
     stages {
         stage('Deploy') {
             steps {
                 harness 'push artifact:generic my-repo/output build/output.jar --version 1.0.0'
             }
         }
     }
 }
 
  • Constructor Details

    • HarnessStep

      @DataBoundConstructor public HarnessStep(Object args)
  • Method Details

    • getArgs

      public String[] getArgs()
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context)
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step