fix(scanner): Uncommented check to enable uploadSource when licenseSearch is set
@@ -191,8 +191,7 @@ class BlackDuckSignatureScanner(
scanJobBuilder.dryRun(signatureScannerOptions.dryRun)
scanJobBuilder.cleanupOutput(false)
- // TODO - (signatureScannerOptions.uploadSource && signatureScannerOptions.snippetMatching == null && signatureScannerOptions.licenseSearch == null)
- if (signatureScannerOptions.uploadSource && signatureScannerOptions.snippetMatching == null) {
+ if (signatureScannerOptions.uploadSource && signatureScannerOptions.snippetMatching == null && signatureScannerOptions.licenseSearch == null) {
throw DetectUserFriendlyException("You must enable snippet matching using " + DetectProperties.DETECT_BLACKDUCK_SIGNATURE_SCANNER_SNIPPET_MATCHING.key + " in order to use upload source.",
ExitCodeType.FAILURE_CONFIGURATION)
}
