Found correct regex

This commit is contained in:
Jim Nicholson 2024-02-01 03:01:04 -08:00
parent 222813b889
commit c53ae47858

View File

@ -22,7 +22,7 @@ def call(Map config = [:]) {
error("ERROR: File ${runConfig.buildTest} does not exist in workspace.") error("ERROR: File ${runConfig.buildTest} does not exist in workspace.")
} }
if (runConfig.saveArtifacts) { if (runConfig.saveArtifacts) {
artifactsList = runConfig.artifacts.inspect() artifactsList = runConfig.artifacts.inspect().replaceAll('[\\[\\]\'\"]','')
archiveArtifacts artifacts: artifactsList.substring(1,artifactsList.length()-1), followSymlinks: false archiveArtifacts artifacts: artifactsList, followSymlinks: false
} }
} }