From 319bae31e25f0914c44008eb74930750fdc0a564 Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Mon, 22 Nov 2021 15:03:28 +0800
Subject: [PATCH] test
---
Jenkinsfile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 4d423ff..c6264a2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,6 +12,9 @@
//给日志加上时间错, 需安装 Timestamper 插件
timestamps()
ansiColor('xterm')
+ //丢弃旧的构建前两个为发布包保留天数(比此早的发布包将被删除,但构建的日志、操作历史、报告等将被保留)和构建个数
+ buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '7', numToKeepStr: '10')
+
}
stages {
stage('source') {
@@ -31,7 +34,7 @@
sh '''
#定义颜色的变量
- RED_COLOR='\\E[1;31m' #红
+ RED_COLOR='\\033[1;31m' #红
GREEN_COLOR='\\E[1;32m' #绿
YELOW_COLOR='\\E[1;33m' #黄
BLUE_COLOR='\\E[1;34m' #蓝
--
Gitblit v1.9.1