in plugin-bazel-agent/src/main/kotlin/jetbrains/buildServer/bazel/ShutdownMonitor.kt [28:41]
override fun beforeBuildFinish(
build: AgentRunningBuild,
buildStatus: BuildFinishedStatus,
) {
if (shutdownCommands.any()) {
try {
for (shutdownCommand in shutdownCommands) {
_commandLineExecutor.tryExecute(shutdownCommand.commandLine)
}
} finally {
shutdownCommands.clear()
}
}
}