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 Summary
-
Constructor Summary
ConstructorDescriptionFailureCauseBuildAction
(List<FoundFailureCause> foundFailureCauses) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doIndex
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp) Used for the link to the failure cause management page.Gets the image url for the badge page.getBuild()
Getter for the build.getDynamic
(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp) Used when we are directed to a FoundFailureCause beneath the build action.Getter for the FailureCauseDisplayData.Getter for the FoundFailureCauses.Gets the image url for the summary page.Convenience method for jelly access to PluginImpl.Called after deserialization.void
Setter for the build triggering this object.
-
Field Details
-
URL_NAME
The url of this action.- See Also:
-
-
Constructor Details
-
FailureCauseBuildAction
Standard constructor.- Parameters:
foundFailureCauses
- the FoundFailureCauses.
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getFoundFailureCauses
Getter for the FoundFailureCauses.- Returns:
- the FoundFailureCauses.
-
getImageUrl
Gets the image url for the summary page.- Returns:
- the image url.
-
getBadgeImageUrl
Gets the image url for the badge page.- Returns:
- the image url.
-
getPluginImpl
Convenience method for jelly access to PluginImpl.- Returns:
- the PluginImpl instance.
-
readResolve
Called after deserialization. ConvertsfailureCauses
if existing.- Returns:
- this.
-
getDynamic
public FoundFailureCause getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse 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.
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse 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.
-
setBuild
Setter for the build triggering this object.- Parameters:
build
- - the build corresponding to this action
-
getBuild
Getter for the build.- Returns:
- the build corresponding to this action
-
getFailureCauseDisplayData
Getter for the FailureCauseDisplayData.- Returns:
- the FailureCauseDisplayData.
-