15 lines
317 B
Groovy
15 lines
317 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
void call(Map config = [:], Closure body = { }) {
|
|
Map defaults = [
|
|
testRequires: 'Makefile',
|
|
testCmd: 'make all',
|
|
stepName: 'Test'
|
|
]
|
|
runConfig = defaults + config
|
|
stage(runConfig.stepName) {
|
|
printBanner(runConfig.stepName)
|
|
body()
|
|
}
|
|
}
|