Class SetCommitStatusStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
org.jenkinsci.plugins.github.pullrequest.pipeline.SetCommitStatusStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,Serializable
public class SetCommitStatusStep
extends org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
implements Serializable
Representation of the configuration for the commit status set step. An instance of this class
is made available to the SetCommitStatusExecution object to instruct it on what to do.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe desired context for the status.The message associated with the status providing some detail for it.org.kohsuke.github.GHCommitState
getState()
The desired state of the status.void
setContext
(String context) void
setMessage
(String message) void
setState
(org.kohsuke.github.GHCommitState state) Methods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepImpl
prepareInjector, start
Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
SetCommitStatusStep
@DataBoundConstructor public SetCommitStatusStep()
-
-
Method Details
-
getContext
The desired context for the status. The context identifies a status value on the commit. For example, with two status values, one might have a context of "compile" and another might have one with "tests" to indicate which phase of the build/validation the status applies to. -
setContext
-
getState
public org.kohsuke.github.GHCommitState getState()The desired state of the status. -
setState
@DataBoundSetter public void setState(org.kohsuke.github.GHCommitState state) -
getMessage
The message associated with the status providing some detail for it. -
setMessage
-