Class ResultAction
java.lang.Object
io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
org.jenkinsci.plugins.DependencyCheck.ResultAction
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,RunAction2
,SimpleBuildStep.LastBuildAction
Ported from the Dependency-Track Jenkins plugin.
- Since:
- 5.0.0
- Author:
- Steve Springett (steve.springett@owasp.org)
- See Also:
-
Constructor Summary
ConstructorDescriptionResultAction
(Run<?, ?> owner, List<Finding> findings, SeverityDistribution severityDistribution) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.jenkins.plugins.util.JobAction<? extends io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>>
protected io.jenkins.plugins.util.AbstractXmlStream<DependencyCheckBuildResult>
protected String
net.sf.json.JSONObject
Returns the UI model for an ECharts line chart that shows the findings.Collection<? extends Action>
net.sf.json.JSONObject
Returns a JSON response with the statistics for severity.Methods inherited from class io.jenkins.plugins.util.BuildAction
getBuildActionFromHistoryStartingFrom, getOwner, getResult, onAttached, onLoad, readResolve
-
Constructor Details
-
ResultAction
public ResultAction(Run<?, ?> owner, List<Finding> findings, SeverityDistribution severityDistribution)
-
-
Method Details
-
getIconFileName
-
getDisplayName
-
getUrlName
-
createXmlStream
- Specified by:
createXmlStream
in classio.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
-
getProjectActions
- Specified by:
getProjectActions
in interfaceSimpleBuildStep.LastBuildAction
- Overrides:
getProjectActions
in classio.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
-
createProjectAction
protected io.jenkins.plugins.util.JobAction<? extends io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>> createProjectAction()- Specified by:
createProjectAction
in classio.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
-
getBuildResultBaseName
- Specified by:
getBuildResultBaseName
in classio.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
-
getSeverityDistribution
-
getFindings
-
getFindingsJson
@JavaScriptMethod public net.sf.json.JSONObject getFindingsJson()Returns the UI model for an ECharts line chart that shows the findings.- Returns:
- the UI model as JSON
-
getSeverityDistributionJson
@JavaScriptMethod public net.sf.json.JSONObject getSeverityDistributionJson()Returns a JSON response with the statistics for severity.- Returns:
- the UI model as JSON
-