Commit 0e0f8ea7 authored by wentao.suo's avatar wentao.suo

fff

parent 39be93da
......@@ -41,6 +41,46 @@ def beautyEcho(content, type) {
}
def beautyEcho_tmp(content, type) {
red = "31"
green = "32"
blue = "34"
purple = "35"
darkgreen = "36"
result = ""
switch(type) {
case "info":
content = " ➢➢➢➢➢ \n${content} \n ➢➢➢➢➢"
result = "\033[${blue}m${content}\033[0m"
break
case "success":
content = " ✔✔✔✔✔ \n${content} \n ✔✔✔✔✔"
result = "\033[${green}m${content}\033[0m"
break
case "fail":
content = " ✘✘✘✘✘ \n${content} \n ✘✘✘✘✘"
result = "\033[${red}m${content}\033[0m"
break
case "stage":
content = " ✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩ \n ${content} \n ✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩✩"
result = "\033[${purple}m${content}\033[0m"
break
default:
result = content
break
}
ansiColor('xterm') {
echo result
}
}
def copyDockerFiles() {
}
......
......@@ -28,7 +28,7 @@ def call(body) {
def _stage = new org.qg.docker_new.StageBucket()
def _utils = new org.qg.docker_new.Utils()
ansiColor('xterm') {
System.out.println("++++++++++")
_utils.beautyEcho( "[CLUSTER:${CLUSTER}] [GIT_REPO:${GIT_REPO}] [BRANCH_NAME:${BRANCH_NAME}] [BUILD_TYPE:${BUILD_TYPE}] [TIER:${TIER}]","info")
......@@ -90,7 +90,7 @@ def call(body) {
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment