Class AnchoreAction
- java.lang.Object
-
- com.anchore.jenkins.plugins.anchore.AnchoreAction
-
- All Implemented Interfaces:
Action
,ModelObject
,SimpleBuildStep.LastBuildAction
public class AnchoreAction extends Object implements SimpleBuildStep.LastBuildAction
Anchore plugin results for a given build are stored and subsequently retrieved from an instance of this class. Rendering/display of the results is defined in the appropriate index and summary jelly files. This Jenkins Action is associated with a build (and not the project which is one level up)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Run<?,?>
getBuild()
String
getCveListingUrl()
String
getDisplayName()
String
getGateOutputUrl()
String
getGateReportUrl()
String
getGateStatus()
net.sf.json.JSONObject
getGateSummary()
int
getGoActionCount()
String
getIconFileName()
AnchoreAction
getPreviousResult()
Gets the Anchore result of the previous build, if it's recorded, or null.Collection<? extends Action>
getProjectActions()
Map<String,String>
getQueries()
Map<String,String>
getQueryOutputUrls()
int
getStopActionCount()
String
getUrlName()
int
getWarnActionCount()
-
-
-
Method Detail
-
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
-
getBuild
public Run<?,?> getBuild()
-
getGateStatus
public String getGateStatus()
-
getGateOutputUrl
public String getGateOutputUrl()
-
getGateSummary
public net.sf.json.JSONObject getGateSummary()
-
getCveListingUrl
public String getCveListingUrl()
-
getGateReportUrl
public String getGateReportUrl()
-
getGoActionCount
public int getGoActionCount()
-
getStopActionCount
public int getStopActionCount()
-
getWarnActionCount
public int getWarnActionCount()
-
getProjectActions
public Collection<? extends Action> getProjectActions()
- Specified by:
getProjectActions
in interfaceSimpleBuildStep.LastBuildAction
-
getPreviousResult
public AnchoreAction getPreviousResult()
Gets the Anchore result of the previous build, if it's recorded, or null.- Returns:
- the previous AnchoreAction
-
-