aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2017-10-09 17:04:29 -0400
committerMatt Rendina <mrendina@stsci.edu>2017-10-09 17:04:29 -0400
commita703665d8b95894b3f785a5aed96df2303c44c9d (patch)
treec9e7a8c40540139920abd667c1cbe3fbad8eec77
parent4684c8bc1c4ecfb242a0bfffaad679d6a8bd5502 (diff)
downloadbuild_control-a703665d8b95894b3f785a5aed96df2303c44c9d.tar.gz
Add cleanup stage to purge workspace directory upon completion.
-rw-r--r--jenkins/dispatch.groovy7
1 files changed, 7 insertions, 0 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy
index ede4c94..ce8b1cd 100644
--- a/jenkins/dispatch.groovy
+++ b/jenkins/dispatch.groovy
@@ -336,5 +336,12 @@ node(LABEL) {
println("No build artifacts found.")
}
}
+
+ stage ("Cleanup") {
+ // Clean up the workspace to conserve disk space. Conda installations
+ // especially consume a fair amount.
+ // The directory deleted is the one named after the jenkins pipeline job.
+ deleteDir()
+ }
}