Class M2ReleaseBadgeAction
- java.lang.Object
-
- org.jvnet.hudson.plugins.m2release.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 Summary
Constructors Constructor Description M2ReleaseBadgeAction()
Construct a new BadgeIcon to a Maven release build.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Gets the string to be displayed.String
getIconFileName()
Gets the file name of the icon.String
getTooltipText()
Gets the tooltip text that should be displayed to the user.String
getUrlName()
Gets the URL path name.String
getVersionNumber()
Gets the version number that was released.boolean
isDryRun()
Returns if the release was a dryRun or not.boolean
isFailedBuild()
Returnstrue
if the release build job failed.void
onAttached(Run<?,?> run)
void
onLoad(Run<?,?> run)
Object
readResolve()
-
-
-
Method Detail
-
readResolve
public Object readResolve()
-
getDisplayName
public String getDisplayName()
Gets the string to be displayed.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Returns:
null
as we don't display any text to the user.
-
getIconFileName
public String getIconFileName()
Gets the file name of the icon.- Specified by:
getIconFileName
in interfaceAction
- Returns:
null
as badges icons are rendered by the jelly.
-
getUrlName
public String getUrlName()
Gets the URL path name.- Specified by:
getUrlName
in interfaceAction
- 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()
Returnstrue
if the release build job failed.
-
onAttached
public void onAttached(Run<?,?> run)
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> run)
- Specified by:
onLoad
in interfaceRunAction2
-
-