From 7d78c4715ca927b0c90e2eb30d64c8f315fa9eac Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 12 May 2022 02:47:20 -0500 Subject: [PATCH] Added cleanup stage in Jenkinsfile. --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 344b856..e7cccaf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,11 @@ pipeline { agent any stages { + stage("cleanup") { + steps { + cleanWs(patterns: [[pattern: 'publish/**', type: 'INCLUDE']]) + } + } stage("server launch test") { steps { dir('server') {