Skip to content

Commit

Permalink
detectExecuteScan - fix for diagnostics folder path (#4940)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaste authored May 31, 2024
1 parent c4019cf commit 3e86491
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/detectExecuteScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,15 +532,15 @@ func addDetectArgs(args []string, config detectExecuteScanOptions, utils detectU
args = append(args, fmt.Sprintf("\"--detect.diagnostic=true\""))
args = append(args, fmt.Sprintf("\"--detect.cleanup=false\""))

err := utils.MkdirAll("./blackduckDiagnostics", 0o755)
err := utils.MkdirAll(".pipeline/blackduckDiagnostics", 0o755)
if err != nil {
return nil, errors.Wrap(err, "failed to create diagnostics directory")
}

log.Entry().Info("Diagnostics enabled, output will be stored in ./blackduckDiagnostics")
log.Entry().Info("Diagnostics enabled, output will be stored in .pipeline/blackduckDiagnostics")

args = append(args, fmt.Sprintf("\"--detect.scan.output.path=./blackduckDiagnostics\""))
args = append(args, fmt.Sprintf("\"--detect.output.path=./blackduckDiagnostics\""))
args = append(args, fmt.Sprintf("\"--detect.scan.output.path=.pipeline/blackduckDiagnostics\""))
args = append(args, fmt.Sprintf("\"--detect.output.path=.pipeline/blackduckDiagnostics\""))
}

// to exclude dependency types for npm
Expand Down

0 comments on commit 3e86491

Please sign in to comment.