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
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
import groovy.transform.Field
|
void call(Map config = [:]) {
|
||||||
|
|
||||||
@Field
|
|
||||||
Map defaults = [
|
Map defaults = [
|
||||||
saveArtifaces: false,
|
saveArtifaces: false,
|
||||||
buildTest: 'Makefile',
|
buildTest: 'Makefile',
|
||||||
buildCmd: 'make all'
|
buildCmd: 'make all'
|
||||||
]
|
]
|
||||||
|
|
||||||
def call(Map config = [:]) {
|
|
||||||
Map runConfig = defaults + config
|
Map runConfig = defaults + config
|
||||||
if (runConfig.saveArtifacts) {
|
if (runConfig.saveArtifacts) {
|
||||||
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
|
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user