Found correct regex
This commit is contained in:
parent
222813b889
commit
c53ae47858
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user