Add framework for a test stage
This commit is contained in:
parent
20148791c7
commit
1bb0ca011d
14
vars/testStage.groovy
Normal file
14
vars/testStage.groovy
Normal file
@ -0,0 +1,14 @@
|
||||
#!/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()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user