Package io.jenkins.plugins.reporter
Class ReportAction
- java.lang.Object
-
- io.jenkins.plugins.reporter.ReportAction
-
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,RunAction2
,SimpleBuildStep.LastBuildAction
,org.kohsuke.stapler.StaplerProxy
public class ReportAction extends Object implements SimpleBuildStep.LastBuildAction, RunAction2, org.kohsuke.stapler.StaplerProxy, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReportAction(Run<?,?> owner, ReportResult result, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
String
getIconFileName()
String
getId()
Returns the ID of this action.String
getName()
Returns the name of the report.Run<?,?>
getOwner()
Returns the associated build/run that created the static analysis result.Collection<? extends Action>
getProjectActions()
ReportResult
getResult()
ReportDetails
getTarget()
String
getUrlName()
void
onAttached(Run<?,?> r)
void
onLoad(Run<?,?> r)
protected Object
readResolve()
Called after de-serialization to retain backward compatibility.
-
-
-
Field Detail
-
REPORT_ID
public static final String REPORT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportAction
public ReportAction(Run<?,?> owner, ReportResult result, String name)
-
-
Method Detail
-
onAttached
public void onAttached(Run<?,?> r)
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
public void onLoad(Run<?,?> r)
- Specified by:
onLoad
in interfaceRunAction2
-
readResolve
protected Object readResolve()
Called after de-serialization to retain backward compatibility.- Returns:
- this
-
getOwner
public Run<?,?> getOwner()
Returns the associated build/run that created the static analysis result.- Returns:
- the run
-
getId
public String getId()
Returns the ID of this action.- Returns:
- the ID
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getTarget
public ReportDetails getTarget()
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
getResult
public ReportResult getResult()
-
getName
public String getName()
Returns the name of the report.- Returns:
- the ID
-
getProjectActions
public Collection<? extends Action> getProjectActions()
- Specified by:
getProjectActions
in interfaceSimpleBuildStep.LastBuildAction
-
-