Class EmotionalJenkinsAction

java.lang.Object
org.jenkinsci.plugins.emotional_jenkins.EmotionalJenkinsAction
All Implemented Interfaces:
Action, ModelObject, RunAction2

public final class EmotionalJenkinsAction extends Object implements RunAction2
Attached to a build by EmotionalJenkinsPublisher. The mood is computed from the build result when the page is rendered, so a Pipeline step called from post { always { ... } } still reflects the final result.
  • Constructor Details

    • EmotionalJenkinsAction

      public EmotionalJenkinsAction()
  • Method Details

    • onAttached

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

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

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getResult

      public Result getResult()
      Returns:
      the build result, or null while the build is still running without a result.
    • getImageFileName

      public String getImageFileName()
      Returns:
      the image Mr. Jenkins should show for the current result.
    • getMood

      public String getMood()
      Returns:
      happy, worried, angry or disappointed.