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
Constructors Constructor Description RoundhouseAction(Style style, String fact)
Constructs a RoundhouseAction with specified style and fact.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Gets the action display name.String
getFact()
Gets the Chuck Norris fact.String
getIconFileName()
This action doesn't provide any icon file.Collection<? extends Action>
getProjectActions()
Returns this action as a collection of all project actions.Style
getStyle()
Gets the Chuck Norris style.String
getUrlName()
Gets the URL name for this action.void
onAttached(Run<?,?> r)
void
onLoad(Run<?,?> r)
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Gets the action display name.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Returns:
- the display name
-
getIconFileName
public String getIconFileName()
This action doesn't provide any icon file.- Specified by:
getIconFileName
in interfaceAction
- Returns:
- null
-
getUrlName
public String getUrlName()
Gets the URL name for this action.- Specified by:
getUrlName
in interfaceAction
- Returns:
- the URL name
-
getStyle
public Style getStyle()
Gets the Chuck Norris style.- Returns:
- the style
-
getFact
public String getFact()
Gets the Chuck Norris fact.- Returns:
- the fact
-
getProjectActions
public Collection<? extends Action> 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:
getProjectActions
in interfaceSimpleBuildStep.LastBuildAction
- Returns:
- the project actions
-
onAttached
public void onAttached(Run<?,?> r)
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> r)
- Specified by:
onLoad
in interfaceRunAction2
-
-