You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trace.Info($"Current runner version {currentVersion} is way behind the latest runner version {serverPackages[0].Version}.");
240
+
warnOnOldRunnerVersion=true;
241
+
}
242
+
243
+
if(result==TaskResult.Failed&&warnOnFailedJob)
244
+
{
245
+
jobContext.Warning($"This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version {currentVersion}. Please update to the latest version {serverPackages[0].Version}");
246
+
}
247
+
elseif(warnOnOldRunnerVersion)
248
+
{
249
+
jobContext.Warning($"This self-hosted runner is currently using runner version {currentVersion}. This version is out of date. Please update to the latest version {serverPackages[0].Version}");
250
+
}
251
+
}
252
+
}
253
+
catch(Exceptionex)
254
+
{
255
+
// Ignore any error since suggest runner update is best effort.
256
+
Trace.Error($"Caught exception during runner version check: {ex}");
0 commit comments