mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
chore(checkmarxExecuteScan): split and trim filterPattern (#3661)
This commit is contained in:
parent
22f6aa156f
commit
26bf3808fe
@ -226,7 +226,7 @@ func loadExistingProject(sys checkmarx.System, initialProjectName, pullRequestNa
|
||||
|
||||
func zipWorkspaceFiles(filterPattern string, utils checkmarxExecuteScanUtils) (*os.File, error) {
|
||||
zipFileName := filepath.Join(utils.GetWorkspace(), "workspace.zip")
|
||||
patterns := strings.Split(strings.ReplaceAll(strings.ReplaceAll(filterPattern, ", ", ","), " ,", ","), ",")
|
||||
patterns := piperutils.Trim(strings.Split(filterPattern, ","))
|
||||
sort.Strings(patterns)
|
||||
zipFile, err := os.Create(zipFileName)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user