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