mirror of
https://github.com/actions/runner.git
synced 2025-12-13 10:05:23 +00:00
Update AgentPlatform for job timeline record (#939)
* Update AgentPlatform for job timeline record * removed unused using
This commit is contained in:
@@ -858,6 +858,10 @@ namespace GitHub.Runner.Worker
|
|||||||
{
|
{
|
||||||
_record.ParentId = parentTimelineRecordId;
|
_record.ParentId = parentTimelineRecordId;
|
||||||
}
|
}
|
||||||
|
else if (parentTimelineRecordId == null)
|
||||||
|
{
|
||||||
|
_record.AgentPlatform = VarUtil.OS;
|
||||||
|
}
|
||||||
|
|
||||||
var configuration = HostContext.GetService<IConfigurationStore>();
|
var configuration = HostContext.GetService<IConfigurationStore>();
|
||||||
_record.WorkerName = configuration.GetSettings().AgentName;
|
_record.WorkerName = configuration.GetSettings().AgentName;
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace GitHub.DistributedTask.WebApi
|
|||||||
this.RefName = recordToBeCloned.RefName;
|
this.RefName = recordToBeCloned.RefName;
|
||||||
this.ErrorCount = recordToBeCloned.ErrorCount;
|
this.ErrorCount = recordToBeCloned.ErrorCount;
|
||||||
this.WarningCount = recordToBeCloned.WarningCount;
|
this.WarningCount = recordToBeCloned.WarningCount;
|
||||||
|
this.AgentPlatform = recordToBeCloned.AgentPlatform;
|
||||||
|
|
||||||
if (recordToBeCloned.Log != null)
|
if (recordToBeCloned.Log != null)
|
||||||
{
|
{
|
||||||
@@ -254,6 +255,13 @@ namespace GitHub.DistributedTask.WebApi
|
|||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DataMember(Order = 132, EmitDefaultValue = false)]
|
||||||
|
public string AgentPlatform
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
public IList<TimelineAttempt> PreviousAttempts
|
public IList<TimelineAttempt> PreviousAttempts
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in New Issue
Block a user