use of com.synopsys.integration.detect.workflow.result.BlackDuckBomDetectResult in project synopsys-detect by blackducksoftware.
the class DetectStatusLoggerTest method createResults.
private List<DetectResult> createResults() {
ArrayList<DetectResult> detectResults = new ArrayList<>();
DetectResult result = new BlackDuckBomDetectResult("https://example.com/api/projects/project_1");
detectResults.add(result);
result = new BlackDuckBomDetectResult("https://example.com/api/projects/project_2");
detectResults.add(result);
result = new AirGapDetectResult("./air_gap/directory");
detectResults.add(result);
result = new ReportDetectResult("report_1", "./report/1/report_file");
detectResults.add(result);
return detectResults;
}
use of com.synopsys.integration.detect.workflow.result.BlackDuckBomDetectResult in project synopsys-detect by blackducksoftware.
the class IntelligentModeStepRunner method publishPostResults.
private void publishPostResults(BdioResult bdioResult, ProjectVersionWrapper projectVersionWrapper, DetectToolFilter detectToolFilter) {
if ((!bdioResult.getUploadTargets().isEmpty() || detectToolFilter.shouldInclude(DetectTool.SIGNATURE_SCAN))) {
Optional<String> componentsLink = Optional.ofNullable(projectVersionWrapper).map(ProjectVersionWrapper::getProjectVersionView).flatMap(projectVersionView -> projectVersionView.getFirstLinkSafely(ProjectVersionView.COMPONENTS_LINK)).map(HttpUrl::string);
if (componentsLink.isPresent()) {
DetectResult detectResult = new BlackDuckBomDetectResult(componentsLink.get());
operationFactory.publishResult(detectResult);
}
}
}
Aggregations