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 Details

    • RoundhouseAction

      public RoundhouseAction(Style style, String fact)
      Constructs a RoundhouseAction with specified style and fact.
      Parameters:
      style - the style
      fact - the fact
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Gets the action display name.
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
      Returns:
      the display name
    • getIconFileName

      public String getIconFileName()
      This action doesn't provide any icon file.
      Specified by:
      getIconFileName in interface Action
      Returns:
      null
    • getUrlName

      public String getUrlName()
      Gets the URL name for this action.
      Specified by:
      getUrlName in interface Action
      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 interface SimpleBuildStep.LastBuildAction
      Returns:
      the project actions
    • onAttached

      public void onAttached(Run<?,?> r)
      Specified by:
      onAttached in interface RunAction2
    • onLoad

      public void onLoad(Run<?,?> r)
      Specified by:
      onLoad in interface RunAction2