mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-16 05:16:08 +02:00
Fixed excluded directories with pattern (#4980)
Signed-off-by: Vijayan T <vijayanjay@gmail.com>
This commit is contained in:
parent
64aabd8daa
commit
0f427c324a
@ -1124,7 +1124,7 @@ func logConfigInVerboseMode(config detectExecuteScanOptions) {
|
||||
}
|
||||
|
||||
func handleExcludedDirectories(args *[]string, config *detectExecuteScanOptions) {
|
||||
index := findItemInStringSlice(config.ScanProperties, "detect.excluded.directories")
|
||||
index := findItemInStringSlice(config.ScanProperties, "--detect.excluded.directories=")
|
||||
if index != -1 && !strings.Contains(config.ScanProperties[index], configPath) {
|
||||
config.ScanProperties[index] += "," + configPath
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user