diff --git a/engine/api/workflow_event.go b/engine/api/workflow_event.go index 8beedc6334..8daa76a494 100644 --- a/engine/api/workflow_event.go +++ b/engine/api/workflow_event.go @@ -102,6 +102,11 @@ func NewEventJobSummary(wr sdk.WorkflowRun, noderun sdk.WorkflowNodeRun, jobrun GitCommit: noderun.VCSHash, } + node := wr.Workflow.WorkflowData.NodeByID(noderun.WorkflowNodeID) + if node != nil && node.Context != nil { + ejs.PipelineName = node.Context.PipelineName + } + if wr.Version != nil { ejs.WorkflowRunVersion = *wr.Version } else { diff --git a/sdk/event.go b/sdk/event.go index 92ae6a6083..28cc5ace21 100644 --- a/sdk/event.go +++ b/sdk/event.go @@ -147,6 +147,7 @@ type EventJobSummary struct { ProjectKey string `json:"project_key"` Workflow string `json:"workflow"` Pipeline string `json:"pipeline"` + PipelineName string `json:"pipeline_name"` Job string `json:"job"` WorkflowRunVersion string `json:"workflow_run_version"` WorkflowRunNumber int `json:"workflow_run_number"`