diff --git a/vars/checkoutStep.groovy b/vars/checkoutStep.groovy index 369cf7d..569c87d 100644 --- a/vars/checkoutStep.groovy +++ b/vars/checkoutStep.groovy @@ -5,7 +5,6 @@ void call(Map config = [:], Closure body = { }) { stepName: 'Checkout', useJobSCM: true ] - echo 'Firing ...' runConfig = defaults + config stage(runConfig.stepName) { printBanner(runConfig.stepName) diff --git a/vars/publishStep.groovy b/vars/publishStep.groovy new file mode 100644 index 0000000..623366b --- /dev/null +++ b/vars/publishStep.groovy @@ -0,0 +1,12 @@ +#!/usr/bin/env groovy + +void call(Map config = [:], Closure body = { }) { + Map defaults = [ + stepName: 'Publish' + ] + runConfig = defaults + config + stage(runConfig.stepName) { + printBanner(runConfig.stepName) + body() + } +}