Skip to content

Commit

Permalink
Merge pull request #176 from pankti11/pkt/job/priority
Browse files Browse the repository at this point in the history
Adding job priority as part of job struct
  • Loading branch information
james2791 authored Feb 6, 2024
2 parents 35f6a1b + 5614d53 commit d3f593a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildkite/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type Job struct {
ClusterID *string `json:"cluster_id,omitempty" yaml:"cluster_id,omitempty"`
ClusterQueueID *string `json:"cluster_queue_id,omitempty" yaml:"cluster_queue_id,omitempty"`
TriggeredBuild *TriggeredBuild `json:"triggered_build,omitempty" yaml:"triggered_build,omitempty"`
Priority *JobPriority `json:"priority" yaml:"priority,omitempty"`
}

// JobRetrySource represents what triggered this retry.
Expand Down Expand Up @@ -93,6 +94,11 @@ type TriggeredBuild struct {
WebURL *string `json:"web_url,omitempty" yaml:"web_url,omitempty"`
}

// JobPriority represents the priority of the job
type JobPriority struct {
Number *int `json:"number,omitempty" yaml:"number,omitempty"`
}

// UnblockJob - unblock a job
//
// buildkite API docs: https://buildkite.com/docs/apis/rest-api/jobs#unblock-a-job
Expand Down

0 comments on commit d3f593a

Please sign in to comment.