Class NaginatorAction
java.lang.Object
com.chikli.hudson.plugin.naginator.NaginatorAction
- All Implemented Interfaces:
Action,BuildBadgeAction,ModelObject
- Direct Known Subclasses:
NaginatorMatrixAction
- Author:
- Nicolas De Loof
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.NaginatorAction(int retryCount) Deprecated.useNaginatorAction(Run, int, int)instead.NaginatorAction(Run<?, ?> parentBuild, int retryCount, int maxRetryCount) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum number to reschedule.Returns the maximum number to reschedule.intReturns the number of retry this build is rescheduled for.void
-
Constructor Details
-
NaginatorAction
Deprecated. -
NaginatorAction
Deprecated.useNaginatorAction(Run, int, int)instead.- Parameters:
retryCount- the number of retry this build is rescheduled for.- Since:
- 1.16
-
NaginatorAction
- Parameters:
parentBuild- the build to retry.retryCount- the number of retry this build is rescheduled for.maxRetryCount- the maximum number to retry. Can be 0 for indeterminable cases.- Since:
- 1.17
-
-
Method Details
-
setCause
-
getTooltip
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getRetryCount
public int getRetryCount()Returns the number of retry this build is rescheduled for. This may be0for builds rescheduled with older versions of naginator-plugin.- Returns:
- the number of retry this build is rescheduled for.
- Since:
- 1.16
-
getMaxRetryCount
public int getMaxRetryCount()Returns the maximum number to reschedule. This may be0for builds rescheduled with older versions of naginator-plugin for cases that the build is rescheduled manually, or for cases the maximum number is indeterminable.- Returns:
- the maximum number to retry.
- Since:
- 1.17
-
getParentBuildNumber
Returns the maximum number to reschedule. This may benullfor builds rescheduled with older versions of naginator-plugin- Returns:
- the build number of the build to reschedule.
- Since:
- 1.17
-
NaginatorAction(int)