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
Reschedules a build if the current one fails.
- Author:
- Nayan Hajratwala <nayan@chikli.com>
-
Nested Class Summary
Nested ClassesNested 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
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorsConstructorDescriptionNaginatorPublisher
(String regexpForRerun, boolean rerunIfUnstable, boolean checkRegexp) NaginatorPublisher
(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, boolean regexpForMatrixParent, int maxSchedule, ScheduleDelay delay) Deprecated.NaginatorPublisher
(String regexpForRerun, boolean rerunIfUnstable, boolean rerunMatrixPart, boolean checkRegexp, int maxSchedule, ScheduleDelay delay) constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
int
boolean
boolean
Deprecated.boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) 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 Details
-
DEFAULT_REGEXP_TIMEOUT_MS
public static final long DEFAULT_REGEXP_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
NaginatorPublisher
-
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 Details
-
readResolve
-
isRerunIfUnstable
public boolean isRerunIfUnstable() -
isRerunMatrixPart
public boolean isRerunMatrixPart() -
setNoChildStrategy
- Parameters:
noChildStrategy
- strategy for the case no chilredn to run- Since:
- 1.17
-
getNoChildStrategy
- Returns:
- the strategy for no children to rerun for a matrix project.
- Since:
- 1.17
-
isCheckRegexp
public boolean isCheckRegexp() -
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
-
setRegexpForMatrixStrategy
@DataBoundSetter public void setRegexpForMatrixStrategy(@NonNull RegexpForMatrixStrategy regexpForMatrixStrategy) - Parameters:
regexpForMatrixStrategy
- how to apply regexp to multi-configuration builds- Since:
- 1.17
-
getRegexpForMatrixStrategy
- Returns:
- how to apply regexp for matrix builds.
- Since:
- 1.17
-
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
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
NaginatorPublisher(String, boolean, boolean, boolean, int, ScheduleDelay)
and other setters