Class ScanResultAction
java.lang.Object
org.jenkinsci.plugins.cortexcloud.publisher.ScanResultAction
- All Implemented Interfaces:
Action,ModelObject,Serializable,RunAction2
Per-build action that surfaces a Cortex image-scan result.
This is the Cortex equivalent of the legacy plugin's results action: it is
attached to the Run, contributes a left-nav link and a build-summary box
(rendered by summary.jelly / index.jelly), and exposes the parsed findings to
those views.
Gating already happened during the build step (driven by the CLI exit code);
this action is purely for reporting. When the CLI produced no JSON, the
findings tables are empty but the pass/fail badge and exit code are still shown.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScanResultAction(String scanTarget, int exitCode, boolean passed, CortexScanResult result, String rawOutput) -
Method Summary
Modifier and TypeMethodDescriptionintFlattened list of compliance findings across all scanned entities.intintintintintRun<?, ?> getRun()Flattened list of vulnerability findings across all scanned entities.intbooleanbooleanisPassed()voidonAttached(Run<?, ?> r) void
-
Constructor Details
-
Method Details
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin interfaceRunAction2
-
getRun
- Returns:
- the build this action belongs to (used by the result view).
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getScanTarget
-
getExitCode
public int getExitCode() -
isPassed
public boolean isPassed() -
getStatusLabel
-
hasResult
public boolean hasResult() -
getConsoleUrl
-
getVulnerabilities
Flattened list of vulnerability findings across all scanned entities. -
getComplianceIssues
Flattened list of compliance findings across all scanned entities. -
getVulnerabilityCount
public int getVulnerabilityCount() -
getCriticalCount
public int getCriticalCount() -
getHighCount
public int getHighCount() -
getMediumCount
public int getMediumCount() -
getLowCount
public int getLowCount() -
getComplianceIssueCount
public int getComplianceIssueCount() -
getRawOutput
-