From 6b9a6ed10a036587ed57af128d0319fd34939d69 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Mon, 16 Apr 2018 11:09:06 -0700 Subject: [PATCH] Clean up Ubuntu arm build machines --- netci.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/netci.groovy b/netci.groovy index 424ecbe..cb6ab4e 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}"); -- 2.7.4