Class NaginatorPublisher

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep

public class NaginatorPublisher extends Notifier
Reschedules a build if the current one fails.
Author:
Nayan Hajratwala <nayan@chikli.com>
  • Field Details

    • DEFAULT_REGEXP_TIMEOUT_MS

      public static final long DEFAULT_REGEXP_TIMEOUT_MS
      See Also:
  • Constructor Details

    • NaginatorPublisher

      public NaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean checkRegexp)
    • NaginatorPublisher

      @DataBoundConstructor public NaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, int maxSchedule, ScheduleDelay delay)
      constructor.
    • NaginatorPublisher

      @Deprecated public NaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, boolean regexpForMatrixParent, int maxSchedule, ScheduleDelay delay)
      Since:
      1.16
  • Method Details

    • readResolve

      public Object readResolve()
    • isRerunIfUnstable

      public boolean isRerunIfUnstable()
    • isRerunMatrixPart

      public boolean isRerunMatrixPart()
    • setNoChildStrategy

      @DataBoundSetter public void setNoChildStrategy(@NonNull NoChildStrategy noChildStrategy)
      Parameters:
      noChildStrategy - strategy for the case no chilredn to run
      Since:
      1.17
    • getNoChildStrategy

      @NonNull public NoChildStrategy getNoChildStrategy()
      Returns:
      the strategy for no children to rerun for a matrix project.
      Since:
      1.17
    • isCheckRegexp

      public boolean isCheckRegexp()
    • isRegexpForMatrixParent

      @Deprecated public boolean isRegexpForMatrixParent()
      Returns whether apply the regexp to the matrix parent instead of matrix children. The default is false for naginator-plugin >= 1.16 though true for configurations upgraded from naginator-plugin < 1.16.
      Returns:
      Returns whether apply the regexp to the matrix parent instead of matrix children
      Since:
      1.16
    • getRegexpForRerun

      public String getRegexpForRerun()
    • setRegexpForMatrixStrategy

      @DataBoundSetter public void setRegexpForMatrixStrategy(@NonNull RegexpForMatrixStrategy regexpForMatrixStrategy)
      Parameters:
      regexpForMatrixStrategy - how to apply regexp to multi-configuration builds
      Since:
      1.17
    • getRegexpForMatrixStrategy

      @NonNull public RegexpForMatrixStrategy getRegexpForMatrixStrategy()
      Returns:
      how to apply regexp for matrix builds.
      Since:
      1.17
    • getDelay

      public ScheduleDelay getDelay()
    • getMaxSchedule

      public int getMaxSchedule()
    • perform

      public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
      Specified by:
      perform in interface BuildStep
      Overrides:
      perform in class BuildStepCompatibilityLayer
      Throws:
      InterruptedException
      IOException
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
    • getDescriptor

      public NaginatorPublisher.DescriptorImpl getDescriptor()
      Specified by:
      getDescriptor in interface Describable<Publisher>
      Overrides:
      getDescriptor in class Notifier