Class JobConfigBadgeAction

All Implemented Interfaces:
Action, BuildBadgeAction, ModelObject, RunAction2

public class JobConfigBadgeAction extends Object implements BuildBadgeAction, RunAction2
This class adds a badge to the build history marking builds that occurred after the configuration was changed.
Kathi Stutz
  • 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
    • showBadge

      public boolean showBadge()
      Returns true if the config change build badges should appear (depending on plugin settings and user permissions). Called from badge.jelly.
      True if badges should appear.
    • oldConfigsExist

      public boolean oldConfigsExist()
      Check if the config history files that are attached to the build still exist.
      True if both files exist.
    • createLink

      public String createLink()
      Creates the target for the link to the showDiffFiles page.
      Link target as String.
    • getTooltip

      public String getTooltip()
      Returns tooltip so users know what our nice little icon stands for.
      Explanatory text as string
    • getIcon

      public String getIcon()
      Returns the path to our nice little icon.
      Icon path as string
    • getIconFileName

      public String getIconFileName()
      Non-use interface method.
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Non-use interface method.
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Non-use interface method.
      Specified by:
      getUrlName in interface Action