Package hudson.plugins.jobConfigHistory
Class JobConfigBadgeAction
java.lang.Object
hudson.plugins.jobConfigHistory.JobConfigBadgeAction
- All Implemented Interfaces:
Action
,BuildBadgeAction
,ModelObject
,RunAction2
This class adds a badge to the build history marking builds that occurred
after the configuration was changed.
- Author:
- Kathi Stutz
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreates the target for the link to the showDiffFiles page.Non-use interface method.getIcon()
Returns the path to our nice little icon.Non-use interface method.Returns tooltip so users know what our nice little icon stands for.Non-use interface method.boolean
Check if the config history files that are attached to the build still exist.void
onAttached
(Run<?, ?> r) void
boolean
Returns true if the config change build badges should appear (depending on plugin settings and user permissions).
-
Method Details
-
onAttached
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
- Specified by:
onLoad
in interfaceRunAction2
-
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.- Returns:
- True if badges should appear.
-
oldConfigsExist
public boolean oldConfigsExist()Check if the config history files that are attached to the build still exist.- Returns:
- True if both files exist.
-
createLink
Creates the target for the link to the showDiffFiles page.- Returns:
- Link target as String.
-
getTooltip
Returns tooltip so users know what our nice little icon stands for.- Returns:
- Explanatory text as string
-
getIcon
Returns the path to our nice little icon.- Returns:
- Icon path as string
-
getIconFileName
Non-use interface method.- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
Non-use interface method.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
Non-use interface method.- Specified by:
getUrlName
in interfaceAction
-