Class NaginatorPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.chikli.hudson.plugin.naginator.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NaginatorPublisher.DescriptorImpl
Descriptor forNaginatorPublisher
.-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_REGEXP_TIMEOUT_MS
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description NaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean checkRegexp)
NaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, boolean regexpForMatrixParent, int maxSchedule, ScheduleDelay delay)
Deprecated.useNaginatorPublisher(String, boolean, boolean, boolean, int, ScheduleDelay)
and other settersNaginatorPublisher(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, int maxSchedule, ScheduleDelay delay)
constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ScheduleDelay
getDelay()
NaginatorPublisher.DescriptorImpl
getDescriptor()
int
getMaxSchedule()
NoChildStrategy
getNoChildStrategy()
RegexpForMatrixStrategy
getRegexpForMatrixStrategy()
String
getRegexpForRerun()
BuildStepMonitor
getRequiredMonitorService()
boolean
isCheckRegexp()
boolean
isRegexpForMatrixParent()
Deprecated.boolean
isRerunIfUnstable()
boolean
isRerunMatrixPart()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
Object
readResolve()
void
setNoChildStrategy(NoChildStrategy noChildStrategy)
void
setRegexpForMatrixStrategy(RegexpForMatrixStrategy regexpForMatrixStrategy)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Field Detail
-
DEFAULT_REGEXP_TIMEOUT_MS
public static final long DEFAULT_REGEXP_TIMEOUT_MS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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)
Deprecated.useNaginatorPublisher(String, boolean, boolean, boolean, int, ScheduleDelay)
and other setters- Since:
- 1.16
-
-
Method Detail
-
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()
Deprecated.Returns whether apply the regexp to the matrix parent instead of matrix children. The default isfalse
for naginator-plugin >= 1.16 thoughtrue
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 interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getDescriptor
public NaginatorPublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
-