Skip to content

Commit 06292aa

Browse files
authored
Expose whether debug is on/off via RUNNER_DEBUG. (#253)
1 parent ac1a076 commit 06292aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Runner.Worker/JobRunner.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public async Task<TaskResult> RunAsync(Pipelines.AgentJobRequestMessage message,
107107
return await CompleteJobAsync(jobServer, jobContext, message, TaskResult.Failed);
108108
}
109109

110+
if (jobContext.WriteDebug)
111+
{
112+
jobContext.SetRunnerContext("debug", "1");
113+
}
114+
110115
jobContext.SetRunnerContext("os", VarUtil.OS);
111116

112117
string toolsDirectory = HostContext.GetDirectory(WellKnownDirectory.Tools);

0 commit comments

Comments
 (0)