Skip to content

Commit

Permalink
add ref and type to job completion in run service (#3492)
Browse files Browse the repository at this point in the history
* add ref and type to job completion in run service

* lint
  • Loading branch information
yaananth authored Oct 8, 2024
1 parent aa0ee2b commit 4d8402c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Runner.Worker/ExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Annotation>()
Expand Down
6 changes: 6 additions & 0 deletions src/Sdk/RSWebApi/Contracts/StepResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit 4d8402c

Please sign in to comment.