File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ type Details struct {
18
18
type MonitoringData struct {
19
19
PipelineUrlHash string `json:"PipelineUrlHash,omitempty"`
20
20
BuildUrlHash string `json:"BuildUrlHash,omitempty"`
21
+ Orchestrator string `json:"Orchestrator,omitempty"`
21
22
StageName string `json:"StageName,omitempty"`
22
23
StepName string `json:"StepName,omitempty"`
23
24
ExitCode string `json:"ExitCode,omitempty"`
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ func (s *Splunk) prepareTelemetry(telemetryData telemetry.Data) MonitoringData {
114
114
monitoringData := MonitoringData {
115
115
PipelineUrlHash : telemetryData .PipelineURLHash ,
116
116
BuildUrlHash : telemetryData .BuildURLHash ,
117
+ Orchestrator : telemetryData .Orchestrator ,
117
118
StageName : telemetryData .StageName ,
118
119
StepName : telemetryData .BaseData .StepName ,
119
120
ExitCode : telemetryData .CustomData .ErrorCode ,
Original file line number Diff line number Diff line change @@ -354,7 +354,9 @@ func Test_prepareTelemetry(t *testing.T) {
354
354
{name : "Testing prepare telemetry information" ,
355
355
args : args {
356
356
telemetryData : telemetry.Data {
357
- BaseData : telemetry.BaseData {},
357
+ BaseData : telemetry.BaseData {
358
+ Orchestrator : "Jenkins" ,
359
+ },
358
360
CustomData : telemetry.CustomData {
359
361
Duration : "1234" ,
360
362
ErrorCode : "0" ,
@@ -365,6 +367,7 @@ func Test_prepareTelemetry(t *testing.T) {
365
367
want : MonitoringData {
366
368
PipelineUrlHash : "" ,
367
369
BuildUrlHash : "" ,
370
+ Orchestrator : "Jenkins" ,
368
371
StageName : "" ,
369
372
StepName : "" ,
370
373
ExitCode : "0" ,
You can’t perform that action at this time.
0 commit comments