Add framework for a test stage

This commit is contained in:
Jim Nicholson 2024-02-11 21:48:03 -08:00
parent 20148791c7
commit 1bb0ca011d

14
vars/testStage.groovy Normal file
View 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()
}
}