Class BlockingBehaviour

java.lang.Object
hudson.model.AbstractDescribableImpl<BlockingBehaviour>
hudson.plugins.parameterizedtrigger.BlockingBehaviour
All Implemented Interfaces:
Describable<BlockingBehaviour>

public class BlockingBehaviour extends AbstractDescribableImpl<BlockingBehaviour>
Determines how to handle the status of the triggered builds in TriggerBuilder.
Author:
Kohsuke Kawaguchi
  • Field Details

    • buildStepFailureThreshold

      public final Result buildStepFailureThreshold
    • unstableThreshold

      public final Result unstableThreshold
    • failureThreshold

      public final Result failureThreshold
  • Constructor Details

    • BlockingBehaviour

      @DataBoundConstructor public BlockingBehaviour(String buildStepFailureThreshold, String unstableThreshold, String failureThreshold)
    • BlockingBehaviour

      public BlockingBehaviour(Result buildStepFailureThreshold, Result unstableThreshold, Result failureThreshold)
  • Method Details

    • mapBuildStepResult

      public boolean mapBuildStepResult(Result r)
      Maps the result of a triggered build to the result of the triggering build step.
      Parameters:
      r - the Result of the triggered build to map
      Returns:
      false if the triggering build step has to fail, true otherwise
    • mapBuildResult

      @CheckForNull public Result mapBuildResult(Result r)
      Maps the result of a triggered build to the result of the triggering build.
      Parameters:
      r - the Result of the triggered build to map
      Returns:
      the result of the triggering build