public class PRQABuildAction extends Object implements hudson.model.Action, jenkins.tasks.SimpleBuildStep.LastBuildAction, PrqaProjectName, IndexedAction
Constructor and Description |
---|
PRQABuildAction() |
PRQABuildAction(hudson.model.Run<?,?> build,
String fullPrqaProjectName,
int index) |
Modifier and Type | Method and Description |
---|---|
hudson.model.Run<?,?> |
getBuild() |
PRQAReading |
getBuildActionStatus() |
<T extends PRQAStatus> |
getBuildActionStatus(Class<T> clazz) |
String |
getDisplayName() |
String |
getDisplayName2() |
String |
getIconFileName() |
int |
getIndex() |
PRQABuildAction |
getPreviousAction(int index)
Used to cycle through all previous builds.
|
PRQABuildAction |
getPreviousAction(hudson.model.Run<?,?> run,
int index)
Fetches the previous PRQA build.
|
Collection<? extends hudson.model.Action> |
getProjectActions() |
String |
getProjectName() |
hudson.tasks.Publisher |
getPublisher() |
<T extends hudson.tasks.Publisher> |
getPublisher(Class<T> clazz) |
PRQAReading |
getResult() |
<T extends PRQAStatus> |
getResult(Class<T> clazz)
Converts the result of the interface to a concrete implementation.
|
List<PRQAGraph> |
getSupportedGraphs() |
Number |
getThreshold(StatusCategory cat) |
int |
getThresholdLevel() |
String |
getUrlName() |
void |
setPublisher(hudson.tasks.Publisher publisher) |
void |
setResult(PRQAReading result) |
public PRQABuildAction()
public PRQABuildAction(hudson.model.Run<?,?> build, String fullPrqaProjectName, int index)
public int getIndex()
getIndex
in interface IndexedAction
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 getDisplayName2()
public String getProjectName()
getProjectName
in interface PrqaProjectName
public String getUrlName()
getUrlName
in interface hudson.model.Action
public hudson.tasks.Publisher getPublisher()
public <T extends hudson.tasks.Publisher> T getPublisher(Class<T> clazz)
T
- typeclazz
- classpublic PRQAReading getResult()
public Number getThreshold(StatusCategory cat)
public <T extends PRQAStatus> T getResult(Class<T> clazz)
This check is needed if you for some reason decide to switch report type on the same job, since each report has it's own implementation of a status. We need to do a check on all the collected results to get those that fits the current job profile.
T
- typeclazz
- classpublic void setResult(PRQAReading result)
public void setPublisher(hudson.tasks.Publisher publisher)
publisher
- the publisher to setpublic PRQABuildAction getPreviousAction(int index)
public PRQABuildAction getPreviousAction(hudson.model.Run<?,?> run, int index)
Goes to the end of list.
run:
- the basepublic PRQAReading getBuildActionStatus()
public <T extends PRQAStatus> T getBuildActionStatus(Class<T> clazz)
public Collection<? extends hudson.model.Action> getProjectActions()
getProjectActions
in interface jenkins.tasks.SimpleBuildStep.LastBuildAction
public int getThresholdLevel()
public hudson.model.Run<?,?> getBuild()
Copyright © 2016–2022. All rights reserved.