Class SetGerritReviewStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
com.sonyericsson.hudson.plugins.gerrit.trigger.workflow.SetGerritReviewStep
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class SetGerritReviewStep
extends org.jenkinsci.plugins.workflow.steps.Step
Allows altering the Gerrit review posted at the end of build during the build.
- Author:
- Teemu Murtola <teemu.murtola@gmail.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Adds the step as a workflow extension.static class
Executes the SetGerritReviewStep.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the custom URL for a step.Gets the unsuccessful message for a step.void
setCustomUrl
(String customUrl) Sets a custom URL to post for a build.void
setUnsuccessfulMessage
(String unsuccessfulMessage) Sets additional information to post for a failed build.org.jenkinsci.plugins.workflow.steps.StepExecution
start
(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
SetGerritReviewStep
@DataBoundConstructor public SetGerritReviewStep()Constructor. There are no mandatory parameters to the step.
-
-
Method Details
-
getCustomUrl
Gets the custom URL for a step.- Returns:
- the URL.
-
setCustomUrl
Sets a custom URL to post for a build.- Parameters:
customUrl
- the URL to post.
-
getUnsuccessfulMessage
Gets the unsuccessful message for a step.- Returns:
- the message.
-
setUnsuccessfulMessage
Sets additional information to post for a failed build.- Parameters:
unsuccessfulMessage
- Additional information to post for a failed build.
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-