|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.listeners.RunListener<hudson.model.AbstractBuild>
hudson.plugins.jobConfigHistory.JobConfigBadgeAction
@Extension public class JobConfigBadgeAction
This class adds a badge to the build history marking builds that occurred after the configuration was changed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.listeners.RunListener |
|---|
LISTENERS, targetType |
| Constructor Summary | |
|---|---|
JobConfigBadgeAction()
No arguments about a no-argument constructor (necessary because of annotation). |
|
JobConfigBadgeAction(String[] configDates,
hudson.model.AbstractBuild build)
Creates a new JobConfigBadgeAction. |
|
| Method Summary | |
|---|---|
String |
createLink()
Creates the target for the link to the showDiffFiles page. |
String |
getDisplayName()
Non-use interface method. |
String |
getIcon()
Returns the path to our nice little icon. |
String |
getIconFileName()
Non-use interface method. |
String |
getTooltip()
Returns tooltip so users know what our nice little icon stands for. |
String |
getUrlName()
Non-use interface method. |
boolean |
oldConfigsExist()
Check if the config history files that are attached to the build still exist. |
void |
onStarted(hudson.model.AbstractBuild build,
hudson.model.TaskListener listener)
|
boolean |
showBadge()
Returns true if the config change build badges should appear (depending on plugin settings and user permissions). |
| Methods inherited from class hudson.model.listeners.RunListener |
|---|
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onCompleted, onDeleted, onFinalized, register, setUpEnvironment, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobConfigBadgeAction()
public JobConfigBadgeAction(String[] configDates,
hudson.model.AbstractBuild build)
configDates - The dates of the last two config changesbuild - The respective build| Method Detail |
|---|
public void onStarted(hudson.model.AbstractBuild build,
hudson.model.TaskListener listener)
onStarted in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild>public boolean showBadge()
public boolean oldConfigsExist()
public String createLink()
public String getTooltip()
public String getIcon()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||