Reviewed-on: #1 Co-authored-by: Jim Nicholson <thejimnicholson@gmail.com> Co-committed-by: Jim Nicholson <thejimnicholson@gmail.com>
29 lines
802 B
Groovy
29 lines
802 B
Groovy
|
|
void call(String stepName) {
|
|
red = '\033[31m'
|
|
blue = '\033[34m'
|
|
normal = '\033[0m'
|
|
|
|
stepBanner = "║ $blue$stepName$red ║"
|
|
bannerWidth = stepName.length() + 6
|
|
|
|
top = '╔' + ('═' * bannerWidth) + '╗'
|
|
bottom = '╚' + ('═' * bannerWidth) + '╝'
|
|
ansiColor('xterm') {
|
|
echo "$red$top\n$stepBanner\n$bottom$normal"
|
|
}
|
|
}
|
|
|
|
// fg_black = '\x1b[30m'
|
|
// fg_red = "\x1b[31m"
|
|
// fg_green = "\x1b[32m"
|
|
// fg_yellow = "\x1b[33m"
|
|
// fg_blue = "\x1b[34m"
|
|
// fg_magenta = "\x1b[35m"
|
|
// fg_cyan = "\x1b[36m"
|
|
// fg_white = "\x1b[37m"
|
|
// fg_default = "\x1b39m"
|
|
// fg_reset = "\x1b[0m"
|
|
|
|
// ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬
|