See if we can clean up lint errors
This commit is contained in:
parent
c53ae47858
commit
fc0865e82c
@ -1,15 +1,11 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
import groovy.transform.Field
|
||||
|
||||
@Field
|
||||
Map defaults = [
|
||||
void call(Map config = [:]) {
|
||||
Map defaults = [
|
||||
saveArtifaces: false,
|
||||
buildTest: 'Makefile',
|
||||
buildCmd: 'make all'
|
||||
]
|
||||
|
||||
def call(Map config = [:]) {
|
||||
]
|
||||
Map runConfig = defaults + config
|
||||
if (runConfig.saveArtifacts) {
|
||||
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
|
||||
@ -22,7 +18,7 @@ def call(Map config = [:]) {
|
||||
error("ERROR: File ${runConfig.buildTest} does not exist in workspace.")
|
||||
}
|
||||
if (runConfig.saveArtifacts) {
|
||||
artifactsList = runConfig.artifacts.inspect().replaceAll('[\\[\\]\'\"]','')
|
||||
artifactsList = runConfig.artifacts.inspect().replaceAll('[\\[\\]\'\"]', '')
|
||||
archiveArtifacts artifacts: artifactsList, followSymlinks: false
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user