From f11fb6eec583457b61ae0aba7c92afc91974351a Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Mon, 22 Nov 2021 15:03:19 +0800
Subject: [PATCH] test

---
 Jenkinsfile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 61e105c..a7bee8a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -38,7 +38,7 @@
                     PINK='\\E[1;35m'        #粉红
                     RES='\\E[0m'
 
-                    #需要使用echo -e,在字符串的最后定义了3[0m,它是用来恢复了默认的文本颜色设置,这样就只会得到一个彩色提示符,而不会影响命令和其输出的颜色显示(即黑底白字)。
+                    #需要使用echo -e,在字符串的最后定义了033[0m,它是用来恢复了默认的文本颜色设置,这样就只会得到一个彩色提示符,而不会影响命令和其输出的颜色显示(即黑底白字)。
                     #一共有8种字体颜色可供选择,它们分别是30 (黑色)、31 (红色)、32 (绿色)、33 (黄色)、34 (蓝色)、35 ( 紫红色)、36 (青色)和37 (白色)。
                     #对于底色也有8种颜色可供选择,例如40黑底、41红底、42绿底、43黄底、44蓝底、45紫底、46天蓝底、47白底。
                     echo -e  "\${RED_COLOR}======red color======"
@@ -46,9 +46,9 @@
                     echo -e  "\${BLUE_COLOR}======green color======\${RES}"
                     echo -e  "\${GREEN_COLOR}======green color======\${RES}"
                     echo -e  "\${PINK}======pink color======\${RES}"
-                    echo -e "\033[40;37m 黑底白字 \033[0m"
-                    echo -e "\033[46;37m 天蓝底白字 \033[0m"
-                    echo -e "\033[47;30m 白底黑字 \033[0m"
+                    echo -e "\\033[40;37m 黑底白字 \\033[0m"
+                    echo -e "\\033[46;37m 天蓝底白字 \\033[0m"
+                    echo -e "\\033[47;30m 白底黑字 \\033[0m"
                     echo "#######################################"
                     #直接把echo -e放到变量里面,使用的时候直接输出变量即可
                     SETCOLOR_SUCCESS="echo -en \\\\033[1;32m"

--
Gitblit v1.9.1