File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ type PullRequest struct {
60
60
Repository * string `json:"repository,omitempty" yaml:"repository,omitempty"`
61
61
}
62
62
63
+ type TriggeredFrom struct {
64
+ BuildID * string `json:"build_id,omitempty" yaml:"build_id,omitempty"`
65
+ BuildNumber * int `json:"build_number,omitempty" yaml:"build_number,omitempty"`
66
+ BuildPipelineSlug * string `json:"build_pipeline_slug,omitempty" yaml:"build_pipeline_slug,omitempty"`
67
+ }
68
+
63
69
// Build represents a build which has run in buildkite
64
70
type Build struct {
65
71
ID * string `json:"id,omitempty" yaml:"id,omitempty"`
@@ -93,6 +99,10 @@ type Build struct {
93
99
94
100
// the pull request this build is associated with
95
101
PullRequest * PullRequest `json:"pull_request,omitempty" yaml:"pull_request,omitempty"`
102
+
103
+ // the build that this build is triggered from
104
+ // https://buildkite.com/docs/pipelines/trigger-step
105
+ TriggeredFrom * TriggeredFrom `json:"triggered_from,omitempty" yaml:"triggered_from,omitempty"`
96
106
}
97
107
98
108
type MetaDataFilters struct {
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ type Job struct {
50
50
ParallelGroupTotal * int `json:"parallel_group_total,omitempty" yaml:"parallel_group_total,omitempty"`
51
51
ClusterID * string `json:"cluster_id,omitempty" yaml:"cluster_id,omitempty"`
52
52
ClusterQueueID * string `json:"cluster_queue_id,omitempty" yaml:"cluster_queue_id,omitempty"`
53
+ TriggeredBuild * TriggeredBuild `json:"triggered_build,omitempty" yaml:"triggered_build,omitempty"`
53
54
}
54
55
55
56
// JobRetrySource represents what triggered this retry.
@@ -85,6 +86,13 @@ type JobEnvs struct {
85
86
EnvironmentVariables * map [string ]string `json:"env,string" yaml:"env,string"`
86
87
}
87
88
89
+ type TriggeredBuild struct {
90
+ ID * string `json:"id,omitempty" yaml:"id,omitempty"`
91
+ Number * int `json:"number,omitempty" yaml:"number,omitempty"`
92
+ URL * string `json:"url,omitempty" yaml:"url,omitempty"`
93
+ WebURL * string `json:"web_url,omitempty" yaml:"web_url,omitempty"`
94
+ }
95
+
88
96
// UnblockJob - unblock a job
89
97
//
90
98
// buildkite API docs: https://buildkite.com/docs/apis/rest-api/jobs#unblock-a-job
You can’t perform that action at this time.
0 commit comments