From 51b2031cbf92f2f8db039526ad6c33038046cbb2 Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Wed, 13 Oct 2021 20:49:26 -0700 Subject: [PATCH] Add arch to runner context (#1372) 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 3a30f1c8727..e402d4ca824 100644 --- a/src/Runner.Worker/JobRunner.cs +++ b/src/Runner.Worker/JobRunner.cs @@ -106,6 +106,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);