Skip to content

Commit

Permalink
Add workspace cleaning after job finished (apache#13490)
Browse files Browse the repository at this point in the history
* Add workspace cleaning after job finished

* Update Jenkinsfile_utils.groovy

* Update Jenkinsfile_utils.groovy
  • Loading branch information
marcoabreu authored and zhaoyao73 committed Dec 9, 2018
1 parent 920d018 commit 409a291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 409a291

Please sign in to comment.