pipelineUtils/vars/printBanner.groovy

14 lines
456 B
Groovy

void call(String stepName) {
stepCorner = '+'
stepBanner = "║ $stepName ║"
bannerWidth = stepBanner.length() - 2
// banner = stepCorner + ('=' * bannerWidth) + stepCorner
top = '╔' + ('═' * bannerWidth) + '╗'
bottom = '╚' + ('═' * bannerWidth) + '╝'
echo "$top\n$stepBanner\n$bottom"
}
// ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬