@ExportedBean public class FailureCauseBuildAction extends Object implements hudson.model.BuildBadgeAction
FailureCause
to the user..Modifier and Type | Field and Description |
---|---|
static String |
URL_NAME
The url of this action.
|
Constructor and Description |
---|
FailureCauseBuildAction(List<FoundFailureCause> foundFailureCauses)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse resp)
Used for the link to the failure cause management page.
|
String |
getBadgeImageUrl()
Gets the image url for the badge page.
|
hudson.model.Run |
getBuild()
Getter for the build.
|
String |
getDisplayName() |
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.
|
FailureCauseDisplayData |
getFailureCauseDisplayData()
Getter for the FailureCauseDisplayData.
|
List<FoundFailureCause> |
getFoundFailureCauses()
Getter for the FoundFailureCauses.
|
String |
getIconFileName() |
String |
getImageUrl()
Gets the image url for the summary page.
|
PluginImpl |
getPluginImpl()
Convenience method for jelly access to PluginImpl.
|
String |
getUrlName() |
Object |
readResolve()
Called after deserialization.
|
void |
setBuild(hudson.model.Run build)
Setter for the build triggering this object.
|
public static final String URL_NAME
public FailureCauseBuildAction(List<FoundFailureCause> foundFailureCauses)
foundFailureCauses
- the FoundFailureCauses.public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
@Exported public List<FoundFailureCause> getFoundFailureCauses()
public String getImageUrl()
public String getBadgeImageUrl()
public PluginImpl getPluginImpl()
public Object readResolve()
failureCauses
if existing.public FoundFailureCause getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
token
- the FoundFailureCause number of this build action we are trying to navigate to.req
- the stapler request.resp
- the stapler response.public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp) throws IOException
req
- the stapler request.resp
- the stapler responseIOException
- if so.public void setBuild(hudson.model.Run build)
build
- - the build corresponding to this actionpublic hudson.model.Run getBuild()
@Exported public FailureCauseDisplayData getFailureCauseDisplayData()
Copyright © 2016–2021. All rights reserved.