#!/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() } }