Skip to content

Commit

Permalink
Add arch to runner context (#1372)
Browse files Browse the repository at this point in the history
Fixes #1185
  • Loading branch information
jeremyd2019 authored Oct 14, 2021
1 parent 400b2d8 commit 51b2031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Runner.Worker/JobRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public async Task<TaskResult> RunAsync(Pipelines.AgentJobRequestMessage message,
}

jobContext.SetRunnerContext("os", VarUtil.OS);
jobContext.SetRunnerContext("arch", VarUtil.OSArchitecture);

var runnerSettings = HostContext.GetService<IConfigurationStore>().GetSettings();
jobContext.SetRunnerContext("name", runnerSettings.AgentName);
Expand Down

0 comments on commit 51b2031

Please sign in to comment.