Package io.jenkins.plugins.har.cli
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'
}
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
HarnessStep
-
-
Method Details
-
getArgs
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step
-