1
0
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:
Vijayan T 2024-07-05 16:36:25 +05:30 committed by GitHub
parent 64aabd8daa
commit 0f427c324a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {