From c85e347ace071c90e44cb898e291922e4606aa3f Mon Sep 17 00:00:00 2001 From: karun-singh Date: Thu, 10 Mar 2022 15:22:25 +0530 Subject: [PATCH] added cleanup of unit test reports after stage completion --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 34d09f50..d2204fd7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,6 +43,11 @@ pipeline { } error "Test failure. Stopping pipeline execution!" } + cleanup{ + script{ + sh 'sudo rm -rf target/' + } + } } }