Compare commits
2 Commits
9f2eed96a9
...
1bb0ca011d
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bb0ca011d | |||
| 20148791c7 |
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