From 9c0d1731008ee7a63d9e9c886c40e254991e4a0a Mon Sep 17 00:00:00 2001 From: Marco de Abreu Date: Fri, 7 Dec 2018 01:51:01 +0000 Subject: [PATCH] Add workspace cleaning after job finished (#13490) * Add workspace cleaning after job finished * Update Jenkinsfile_utils.groovy * Update Jenkinsfile_utils.groovy --- ci/Jenkinsfile_utils.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile_utils.groovy b/ci/Jenkinsfile_utils.groovy index fb84e0045d53..f82c238ed075 100644 --- a/ci/Jenkinsfile_utils.groovy +++ b/ci/Jenkinsfile_utils.groovy @@ -263,7 +263,10 @@ def main_wrapper(args) { node(NODE_UTILITY) { // Call failure handler args['failure_handler']() - + + // Clean workspace to reduce space requirements + cleanWs() + // Remember to rethrow so the build is marked as failing if (err) { throw err