Class RoundhouseAction
java.lang.Object
hudson.plugins.chucknorris.RoundhouseAction
- All Implemented Interfaces:
Action, ModelObject, RunAction2, SimpleBuildStep.LastBuildAction
public final class RoundhouseAction
extends Object
implements RunAction2, SimpleBuildStep.LastBuildAction
RoundhouseAction keeps the style and fact associated with the action.
For more info, please watch https://www.youtube.com/watch?v=Vb7lnpk3tRY- Author:
- cliffano
-
Constructor Summary
ConstructorsConstructorDescriptionRoundhouseAction(Style style, int factIndex) Constructs a RoundhouseAction with specified style and fact. -
Method Summary
Modifier and TypeMethodDescriptionGets the action display name.getFact()Gets the Chuck Norris fact.Gets the fact index for locale-aware lookup in Jelly templates.This action doesn't provide any icon file.Collection<? extends Action> Returns this action as a collection of all project actions.getStyle()Gets the Chuck Norris style.Gets the URL name for this action.voidonAttached(Run<?, ?> r) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenu
-
Constructor Details
-
RoundhouseAction
Constructs a RoundhouseAction with specified style and fact.- Parameters:
style- the stylefactIndex- the fact index for locale-aware lookup
-
-
Method Details
-
getDisplayName
Gets the action display name.- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Returns:
- the display name
-
getIconFileName
This action doesn't provide any icon file.- Specified by:
getIconFileNamein interfaceAction- Returns:
- null
-
getUrlName
Gets the URL name for this action.- Specified by:
getUrlNamein interfaceAction- Returns:
- the URL name
-
getStyle
-
getFactIndex
Gets the fact index for locale-aware lookup in Jelly templates.- Returns:
- the fact index, or null for legacy builds
-
getFact
-
getProjectActions
Returns this action as a collection of all project actions. Default jenkins behavior is to get the action on the last successful build (Stable or Unstable) while we want the last completed build (Stable, Unstable or Failure).- Specified by:
getProjectActionsin interfaceSimpleBuildStep.LastBuildAction- Returns:
- the project actions
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-