mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
chore(detect): add error category for policy violations (#2125)
* chore(detect): add error category for policy violations * Update detectExecuteScan.go Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
1e0e230be8
commit
6aa3e514e1
@ -17,7 +17,13 @@ import (
|
||||
)
|
||||
|
||||
func detectExecuteScan(config detectExecuteScanOptions, telemetryData *telemetry.CustomData) {
|
||||
c := command.Command{}
|
||||
c := command.Command{
|
||||
ErrorCategoryMapping: map[string][]string{
|
||||
log.ErrorCompliance.String(): {
|
||||
"FAILURE_POLICY_VIOLATION - Detect found policy violations.",
|
||||
},
|
||||
},
|
||||
}
|
||||
// reroute command output to logging framework
|
||||
c.Stdout(log.Writer())
|
||||
c.Stderr(log.Writer())
|
||||
|
Loading…
Reference in New Issue
Block a user