Class M2ReleaseBadgeAction

  • All Implemented Interfaces:
    Action, BuildBadgeAction, ModelObject, RunAction2

    public class M2ReleaseBadgeAction
    extends Object
    implements BuildBadgeAction, RunAction2
    The M2ReleaseBadgeAction displays a small icon next to any release build in the build history.

    This object also remembers the release in a machine readable form so that other plugins can introspect that the release has happened.

    Author:
    domi, teilo
    • Constructor Detail

      • M2ReleaseBadgeAction

        public M2ReleaseBadgeAction()
        Construct a new BadgeIcon to a Maven release build.
    • Method Detail

      • readResolve

        public Object readResolve()
      • getIconFileName

        public String getIconFileName()
        Gets the file name of the icon.
        Specified by:
        getIconFileName in interface Action
        Returns:
        null as badges icons are rendered by the jelly.
      • getUrlName

        public String getUrlName()
        Gets the URL path name.
        Specified by:
        getUrlName in interface Action
        Returns:
        null as this action object doesn't need to be bound to web.
      • getTooltipText

        public String getTooltipText()
        Gets the tooltip text that should be displayed to the user.
      • getVersionNumber

        public String getVersionNumber()
        Gets the version number that was released.
      • isDryRun

        public boolean isDryRun()
        Returns if the release was a dryRun or not.
      • isFailedBuild

        public boolean isFailedBuild()
        Returns true if the release build job failed.
      • onLoad

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