From 63faaed29321b9d784bf92403af2b3f2793c0257 Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Fri, 24 Sep 2021 13:11:27 -0700 Subject: [PATCH] Add arch to runner context Fixes #1185 --- src/Runner.Worker/JobRunner.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Runner.Worker/JobRunner.cs b/src/Runner.Worker/JobRunner.cs index faeb4dc8e86..162bc514564 100644 --- a/src/Runner.Worker/JobRunner.cs +++ b/src/Runner.Worker/JobRunner.cs @@ -105,6 +105,7 @@ public async Task RunAsync(Pipelines.AgentJobRequestMessage message, } jobContext.SetRunnerContext("os", VarUtil.OS); + jobContext.SetRunnerContext("arch", VarUtil.OSArchitecture); var runnerSettings = HostContext.GetService().GetSettings(); jobContext.SetRunnerContext("name", runnerSettings.AgentName);