Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 8e7aa00

Browse files
Merge pull request #17599 from BruceForstall/CleanupUbunuArmBuildMachine_2.1
Cleanup ubuntu arm build machine 2.1
2 parents a223ac2 + 4894c46 commit 8e7aa00

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

netci.groovy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,17 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
24192419
buildCommands += "zip -r testnativebin.${lowerConfiguration}.zip ./bin/obj/Linux.arm.${configuration}/tests"
24202420

24212421
Utilities.addArchival(newJob, "coreroot.${lowerConfiguration}.zip,testnativebin.${lowerConfiguration}.zip", "")
2422+
2423+
// We need to clean up the build machines; the docker build leaves newly built files with root permission, which
2424+
// the cleanup task in Jenkins can't remove.
2425+
newJob.with {
2426+
publishers {
2427+
azureVMAgentPostBuildAction {
2428+
agentPostBuildAction('Delete agent after build execution (when idle).')
2429+
}
2430+
}
2431+
}
2432+
24222433
break
24232434
default:
24242435
println("Unknown architecture: ${architecture}");

0 commit comments

Comments
 (0)