Class WarnErrorStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.steps.WarnErrorStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable, CatchExecutionOptions

public class WarnErrorStep extends org.jenkinsci.plugins.workflow.steps.Step implements CatchExecutionOptions
Runs a block, and if that block fails, prints a message, marks the build as Result.UNSTABLE, adds a WarningAction to the step, and then continues execution normally.
See Also:
  • Constructor Details

    • WarnErrorStep

      @DataBoundConstructor public WarnErrorStep(String message)
  • Method Details