Added execution context error

This will make a failed health check more visible in the UI without disrupting the execution of the program.
This commit is contained in:
AStancu
2022-09-06 21:53:37 +00:00
committed by Ava S
parent 94e504c40e
commit cfcf0831f3
2 changed files with 3 additions and 2 deletions

View File

@@ -431,6 +431,7 @@ namespace GitHub.Runner.Worker
{
executionContext.Output($"##[group]Container {container.ContainerImage} failed healthchecks, printing logs:");
await _dockerManager.DockerLogs(context: executionContext, containerId: container.ContainerId);
executionContext.Error($"Failed to initialize container {container.ContainerImage}");
executionContext.Output("##[endgroup]");
}
}