From 694e5c3accb775b85e4c2f56f3e585308a4ad592 Mon Sep 17 00:00:00 2001 From: zahidblackduck Date: Tue, 17 Dec 2024 14:32:11 +0600 Subject: [PATCH] Update statusCode to reflect failure reason in detector cascade --- .../detect/workflow/report/output/FormattedOutputManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/blackduck/integration/detect/workflow/report/output/FormattedOutputManager.java b/src/main/java/com/blackduck/integration/detect/workflow/report/output/FormattedOutputManager.java index 4de97cdbbc..6182407be3 100644 --- a/src/main/java/com/blackduck/integration/detect/workflow/report/output/FormattedOutputManager.java +++ b/src/main/java/com/blackduck/integration/detect/workflow/report/output/FormattedOutputManager.java @@ -154,7 +154,7 @@ private List convertDetectors() { detectorToolResult.getDetectorReports().forEach(report -> { report.getExtractedDetectors().forEach(extracted -> { extracted.getAttemptedDetectables().stream() - .map(attempted -> convertAttempted(report.getDirectory(), extracted.getRule().getDetectorType(), attempted, "ATTEMPTED", DetectorStatusCode.ATTEMPTED)) + .map(attempted -> convertAttempted(report.getDirectory(), extracted.getRule().getDetectorType(), attempted, "ATTEMPTED", attempted.getStatusCode())) .forEach(outputs::add); outputs.add(convertExtracted(report.getDirectory(), extracted.getRule().getDetectorType(), extracted.getExtractedDetectable(), "SUCCESS"));