@@ -13,35 +13,37 @@ type JobsService struct {
13
13
}
14
14
15
15
// Job represents a job run during a build in buildkite
16
- type Job struct {
16
+ type Job struct {
17
17
ID * string `json:"id,omitempty" yaml:"id,omitempty"`
18
18
GraphQLID * string `json:"graphql_id,omitempty" yaml:"graphql_id,omitempty"`
19
- Type * string `json:"type,omitempty" yaml:"type,omitempty"`
20
- Name * string `json:"name,omitempty" yaml:"name,omitempty"`
21
- Label * string `json:"label,omitempty" yaml:"label,omitempty"`
22
- StepKey * string `json:"step_key,omitempty" yaml:"step_key,omitempty"`
23
- State * string `json:"state,omitempty" yaml:"state,omitempty"`
24
- LogsURL * string `json:"logs_url,omitempty" yaml:"logs_url,omitempty"`
25
- RawLogsURL * string `json:"raw_log_url,omitempty" yaml:"raw_log_url,omitempty"`
26
- Command * string `json:"command,omitempty" yaml:"command,omitempty"`
27
- ExitStatus * int `json:"exit_status,omitempty" yaml:"exit_status,omitempty"`
28
- ArtifactPaths * string `json:"artifact_paths,omitempty" yaml:"artifact_paths,omitempty"`
29
- ArtifactsURL * string `json:"artifacts_url,omitempty" yaml:"artifacts_url,omitempty"`
30
- CreatedAt * Timestamp `json:"created_at,omitempty" yaml:"created_at,omitempty"`
31
- ScheduledAt * Timestamp `json:"scheduled_at,omitempty" yaml:"scheduled_at,omitempty"`
32
- RunnableAt * Timestamp `json:"runnable_at,omitempty" yaml:"runnable_at,omitempty"`
33
- StartedAt * Timestamp `json:"started_at,omitempty" yaml:"started_at,omitempty"`
34
- FinishedAt * Timestamp `json:"finished_at,omitempty" yaml:"finished_at,omitempty"`
35
- Agent Agent `json:"agent,omitempty" yaml:"agent,omitempty"`
36
- AgentQueryRules []string `json:"agent_query_rules,omitempty" yaml:"agent_query_rules,omitempty"`
37
- WebURL string `json:"web_url" yaml:"web_url"`
38
- Retried bool `json:"retried,omitempty" yaml:"retried,omitempty"`
39
- RetriedInJobID string `json:"retried_in_job_id,omitempty" yaml:"retried_in_job_id,omitempty"`
40
- RetriesCount int `json:"retries_count,omitempty" yaml:"retries_count,omitempty"`
41
- SoftFailed bool `json:"soft_failed,omitempty" yaml:"soft_failed,omitempty"`
42
- UnblockedBy * UnblockedBy `json:"unblocked_by,omitempty" yaml:"unblocked_by,omitempty"`
43
- Unblockable * bool `json:"unblockable,omitempty" yaml:"unblockable,omitempty"`
44
- UnblockURL * string `json:"unblock_url,omitempty" yaml:"unblock_url,omitempty"`
19
+ Type * string `json:"type,omitempty" yaml:"type,omitempty"`
20
+ Name * string `json:"name,omitempty" yaml:"name,omitempty"`
21
+ Label * string `json:"label,omitempty" yaml:"label,omitempty"`
22
+ StepKey * string `json:"step_key,omitempty" yaml:"step_key,omitempty"`
23
+ State * string `json:"state,omitempty" yaml:"state,omitempty"`
24
+ LogsURL * string `json:"logs_url,omitempty" yaml:"logs_url,omitempty"`
25
+ RawLogsURL * string `json:"raw_log_url,omitempty" yaml:"raw_log_url,omitempty"`
26
+ Command * string `json:"command,omitempty" yaml:"command,omitempty"`
27
+ ExitStatus * int `json:"exit_status,omitempty" yaml:"exit_status,omitempty"`
28
+ ArtifactPaths * string `json:"artifact_paths,omitempty" yaml:"artifact_paths,omitempty"`
29
+ ArtifactsURL * string `json:"artifacts_url,omitempty" yaml:"artifacts_url,omitempty"`
30
+ CreatedAt * Timestamp `json:"created_at,omitempty" yaml:"created_at,omitempty"`
31
+ ScheduledAt * Timestamp `json:"scheduled_at,omitempty" yaml:"scheduled_at,omitempty"`
32
+ RunnableAt * Timestamp `json:"runnable_at,omitempty" yaml:"runnable_at,omitempty"`
33
+ StartedAt * Timestamp `json:"started_at,omitempty" yaml:"started_at,omitempty"`
34
+ FinishedAt * Timestamp `json:"finished_at,omitempty" yaml:"finished_at,omitempty"`
35
+ Agent Agent `json:"agent,omitempty" yaml:"agent,omitempty"`
36
+ AgentQueryRules []string `json:"agent_query_rules,omitempty" yaml:"agent_query_rules,omitempty"`
37
+ WebURL string `json:"web_url" yaml:"web_url"`
38
+ Retried bool `json:"retried,omitempty" yaml:"retried,omitempty"`
39
+ RetriedInJobID string `json:"retried_in_job_id,omitempty" yaml:"retried_in_job_id,omitempty"`
40
+ RetriesCount int `json:"retries_count,omitempty" yaml:"retries_count,omitempty"`
41
+ SoftFailed bool `json:"soft_failed,omitempty" yaml:"soft_failed,omitempty"`
42
+ UnblockedBy * UnblockedBy `json:"unblocked_by,omitempty" yaml:"unblocked_by,omitempty"`
43
+ Unblockable * bool `json:"unblockable,omitempty" yaml:"unblockable,omitempty"`
44
+ UnblockURL * string `json:"unblock_url,omitempty" yaml:"unblock_url,omitempty"`
45
+ ParallelGroupIndex * string `json:"parallel_group_index,omitempty" yaml:"parallel_group_index,omitempty"`
46
+ ParallelGroupTotal * string `json:"parallel_group_total,omitempty" yaml:"parallel_group_total,omitempty"`
45
47
}
46
48
47
49
// UnblockedBy represents the unblocked status of a job, when present
@@ -165,4 +167,3 @@ func (js *JobsService) GetJobEnvironmentVariables(org string, pipeline string, b
165
167
166
168
return jobEnvs , resp , err
167
169
}
168
-
0 commit comments