Class FailureCauseBuildAction
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseBuildAction
- All Implemented Interfaces:
- Action,- BuildBadgeAction,- ModelObject
The action to show the 
FailureCause to the user..- Author:
- Tomas Westling <thomas.westling@sonyericsson.com>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionFailureCauseBuildAction(List<FoundFailureCause> foundFailureCauses) Standard constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) Used for the link to the failure cause management page.Deprecated.plugin now uses icons.getBuild()Getter for the build.getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) Used when we are directed to a FoundFailureCause beneath the build action.Getter for the FailureCauseDisplayData.Getter for the FoundFailureCauses.Deprecated.plugin now uses icons.Convenience method for jelly access to PluginImpl.Called after deserialization.voidSetter for the build triggering this object.
- 
Field Details- 
URL_NAMEThe url of this action.- See Also:
 
 
- 
- 
Constructor Details- 
FailureCauseBuildActionStandard constructor.- Parameters:
- foundFailureCauses- the FoundFailureCauses.
 
 
- 
- 
Method Details- 
getIconFileName- Specified by:
- getIconFileNamein interface- Action
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- Action
- Specified by:
- getDisplayNamein interface- ModelObject
 
- 
getUrlName- Specified by:
- getUrlNamein interface- Action
 
- 
getFoundFailureCausesGetter for the FoundFailureCauses.- Returns:
- the FoundFailureCauses.
 
- 
getImageUrlDeprecated.plugin now uses icons.Gets the image url for the summary page.- Returns:
- the image url.
 
- 
getBadgeImageUrlDeprecated.plugin now uses icons.Gets the image url for the badge page.- Returns:
- the image url.
 
- 
getPluginImplConvenience method for jelly access to PluginImpl.- Returns:
- the PluginImpl instance.
 
- 
readResolveCalled after deserialization. ConvertsfailureCausesif existing.- Returns:
- this.
 
- 
getDynamicpublic FoundFailureCause getDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) Used when we are directed to a FoundFailureCause beneath the build action.- Parameters:
- token- the FoundFailureCause number of this build action we are trying to navigate to.
- req- the stapler request.
- resp- the stapler response.
- Returns:
- the correct FoundFailureCause.
 
- 
doIndexpublic void doIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 resp) throws IOException Used for the link to the failure cause management page.- Parameters:
- req- the stapler request.
- resp- the stapler response
- Throws:
- IOException- if so.
 
- 
setBuildSetter for the build triggering this object.- Parameters:
- build- - the build corresponding to this action
 
- 
getBuildGetter for the build.- Returns:
- the build corresponding to this action
 
- 
getFailureCauseDisplayDataGetter for the FailureCauseDisplayData.- Returns:
- the FailureCauseDisplayData.
 
 
-