From 9ed655c1d9569a9e744e1148285521a224c9d198 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Thu, 18 Nov 2021 17:26:45 +0800
Subject: [PATCH] 日志ANSI颜色

---
 Jenkinsfile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 35ff8a8..1f13819 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,7 @@
     options {
         //给日志加上时间错, 需安装 Timestamper 插件
         timestamps()
+        ansiColor('xterm')
 
     }
     stages {
@@ -29,7 +30,7 @@
         stage('test') {
             steps {
                 sh '''
-                     echo"BRANCH ${GIT_BRANCH}"
+                     echo "BRANCH ${GIT_BRANCH}"
                      printenv
                    '''
                 test("${project_name}","${GIT_CREDENTIALS_ID}","${url}","${GIT_BRANCH}")

--
Gitblit v1.9.1