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

public class ResultAction extends io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
Ported from the Dependency-Track Jenkins plugin.
Since:
5.0.0
Author:
Steve Springett (steve.springett@owasp.org)
See Also:
  • Constructor Details

  • Method Details

    • getIconFileName

      public String getIconFileName()
    • getDisplayName

      public String getDisplayName()
    • getUrlName

      public String getUrlName()
    • createXmlStream

      protected io.jenkins.plugins.util.AbstractXmlStream<DependencyCheckBuildResult> createXmlStream()
      Specified by:
      createXmlStream in class io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
    • getProjectActions

      public Collection<? extends Action> getProjectActions()
      Specified by:
      getProjectActions in interface SimpleBuildStep.LastBuildAction
      Overrides:
      getProjectActions in class io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
    • createProjectAction

      protected io.jenkins.plugins.util.JobAction<? extends io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>> createProjectAction()
      Specified by:
      createProjectAction in class io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
    • getBuildResultBaseName

      protected String getBuildResultBaseName()
      Specified by:
      getBuildResultBaseName in class io.jenkins.plugins.util.BuildAction<DependencyCheckBuildResult>
    • getSeverityDistribution

      public SeverityDistribution getSeverityDistribution()
    • getFindings

      public List<Finding> 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