From 4d8402c2605c34a8b35a31a489fb1bf03c3a3c5c Mon Sep 17 00:00:00 2001 From: Yashwanth Anantharaju Date: Tue, 8 Oct 2024 15:52:48 -0400 Subject: [PATCH] add ref and type to job completion in run service (#3492) * add ref and type to job completion in run service * lint --- src/Runner.Worker/ExecutionContext.cs | 2 ++ src/Sdk/RSWebApi/Contracts/StepResult.cs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/Runner.Worker/ExecutionContext.cs b/src/Runner.Worker/ExecutionContext.cs index f34a9c54a28..6d53c5438d9 100644 --- a/src/Runner.Worker/ExecutionContext.cs +++ b/src/Runner.Worker/ExecutionContext.cs @@ -508,6 +508,8 @@ public TaskResult Complete(TaskResult? result = null, string currentOperation = Status = _record.State, Number = _record.Order, Name = _record.Name, + Ref = StepTelemetry?.Ref, + Type = StepTelemetry?.Type, StartedAt = _record.StartTime, CompletedAt = _record.FinishTime, Annotations = new List() diff --git a/src/Sdk/RSWebApi/Contracts/StepResult.cs b/src/Sdk/RSWebApi/Contracts/StepResult.cs index 1da4a2f9797..85886f31f2b 100644 --- a/src/Sdk/RSWebApi/Contracts/StepResult.cs +++ b/src/Sdk/RSWebApi/Contracts/StepResult.cs @@ -19,6 +19,12 @@ public class StepResult [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } + [DataMember(Name = "ref", EmitDefaultValue = false)] + public string Ref { get; set; } + + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + [DataMember(Name = "status")] public TimelineRecordState? Status { get; set; }