Try using substring

This commit is contained in:
Jim Nicholson 2024-02-01 02:56:48 -08:00
parent ada5b92ae5
commit 222813b889

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().replaceAll('\\[\\]','') artifactsList = runConfig.artifacts.inspect()
archiveArtifacts artifacts: artifactsList, followSymlinks: false archiveArtifacts artifacts: artifactsList.substring(1,artifactsList.length()-1), followSymlinks: false
} }
} }