10 lines
220 B
Groovy
10 lines
220 B
Groovy
def printStepBanner(stepName) {
|
|
def bannerWidth = stepName.length() + 6
|
|
def banner = "+${'-'.multiply(bannerWidth)}+"
|
|
def stepBanner = "| $stepName |"
|
|
|
|
echo banner
|
|
echo stepBanner
|
|
echo banner
|
|
}
|