Package hudson.plugins.chucknorris
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 http://www.youtube.com/watch?v=Vb7lnpk3tRY- Author:
- cliffano
-
Constructor Summary
ConstructorsConstructorDescriptionRoundhouseAction(Style style, String fact) Constructs a RoundhouseAction with specified style and fact. -
Method Summary
Modifier and TypeMethodDescriptionGets the action display name.getFact()Gets the Chuck Norris fact.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) void
-
Constructor Details
-
RoundhouseAction
Constructs a RoundhouseAction with specified style and fact.- Parameters:
style- the stylefact- the fact
-
-
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
Gets the Chuck Norris style.- Returns:
- the style
-
getFact
Gets the Chuck Norris fact.- Returns:
- the fact
-
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
-