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.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested 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()intbooleanbooleanDeprecated.booleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidsetNoChildStrategy(NoChildStrategy noChildStrategy) voidsetRegexpForMatrixStrategy(RegexpForMatrixStrategy regexpForMatrixStrategy) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods 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 isfalsefor naginator-plugin >= 1.16 thoughtruefor 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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classNotifier
-
NaginatorPublisher(String, boolean, boolean, boolean, int, ScheduleDelay)and other setters