From 1ffb479e8129bd964d942f7590bde6e8f25685ab Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Mon, 22 Nov 2021 10:52:57 +0800
Subject: [PATCH] pipeline中丢弃旧的构建

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

diff --git a/Jenkinsfile b/Jenkinsfile
index 5b71bbb..d352ac7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,6 +12,7 @@
         //给日志加上时间错, 需安装 Timestamper 插件
         timestamps()
         ansiColor('xterm')
+        buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '7', numToKeepStr: '10')
 
     }
     stages {

--
Gitblit v1.9.1