fix: Convert seconds to milliseconds for the report service.
@@ -24,6 +24,9 @@ package com.synopsys.integration.detect.lifecycle.run.operation.blackduck;
import java.util.Optional;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.synopsys.integration.blackduck.api.generated.view.ProjectVersionView;
import com.synopsys.integration.blackduck.service.BlackDuckServicesFactory;
import com.synopsys.integration.blackduck.service.model.ProjectVersionWrapper;
@@ -41,6 +44,7 @@ import com.synopsys.integration.exception.IntegrationException;
import com.synopsys.integration.rest.HttpUrl;
public class FullScanPostProcessingOperation {
+ private final Logger logger = LoggerFactory.getLogger(getClass());
private final DetectToolFilter detectToolFilter;
private final BlackDuckPostOptions blackDuckPostOptions;
private final EventSystem eventSystem;
@@ -56,7 +60,7 @@ public class FullScanPostProcessingOperation {
public void execute(BlackDuckServicesFactory blackDuckServicesFactory, FullScanPostProcessingInput postProcessingInput) throws DetectUserFriendlyException, IntegrationException {
BlackDuckPostActions blackDuckPostActions = new BlackDuckPostActions(blackDuckServicesFactory.createCodeLocationCreationService(), eventSystem, blackDuckServicesFactory.getBlackDuckApiClient(),
- blackDuckServicesFactory.createProjectBomService(), blackDuckServicesFactory.createReportService(detectTimeoutInSeconds));
+ blackDuckServicesFactory.createProjectBomService(), blackDuckServicesFactory.createReportService(detectTimeoutInSeconds * 1000));
blackDuckPostActions
.perform(blackDuckPostOptions, postProcessingInput.getCodeLocationResults().getCodeLocationWaitData(), postProcessingInput.getProjectVersionWrapper(), postProcessingInput.getProjectNameVersion(), detectTimeoutInSeconds);
