summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-04-16 11:09:06 -0700
committerBruce Forstall <brucefo@microsoft.com>2018-04-16 15:39:47 -0700
commit4894c464bb522d3e0fd03f325817c79e6a8cc2cb (patch)
treedfe6a8435e08d2f9f27968a6c6e0418f9b3bb870 /netci.groovy
parentb3dff4d441013cbfa39ce209f45ba96d605d8e77 (diff)
downloadcoreclr-4894c464bb522d3e0fd03f325817c79e6a8cc2cb.tar.gz
coreclr-4894c464bb522d3e0fd03f325817c79e6a8cc2cb.tar.bz2
coreclr-4894c464bb522d3e0fd03f325817c79e6a8cc2cb.zip
Clean up Ubuntu arm build machines
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy11
1 files changed, 11 insertions, 0 deletions
diff --git a/netci.groovy b/netci.groovy
index 2984308eff..580b9ee73d 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -2419,6 +2419,17 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
buildCommands += "zip -r testnativebin.${lowerConfiguration}.zip ./bin/obj/Linux.arm.${configuration}/tests"
Utilities.addArchival(newJob, "coreroot.${lowerConfiguration}.zip,testnativebin.${lowerConfiguration}.zip", "")
+
+ // We need to clean up the build machines; the docker build leaves newly built files with root permission, which
+ // the cleanup task in Jenkins can't remove.
+ newJob.with {
+ publishers {
+ azureVMAgentPostBuildAction {
+ agentPostBuildAction('Delete agent after build execution (when idle).')
+ }
+ }
+ }
+
break
default:
println("Unknown architecture: ${architecture}");