From b096b05dd495b54ac6614bd9a5f4857b2e7e643b Mon Sep 17 00:00:00 2001
From: wangzilun <964606955@qq.com>
Date: Mon, 22 Nov 2021 15:03:28 +0800
Subject: [PATCH] pipeline中丢弃旧的构建

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

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

--
Gitblit v1.9.1