build

package
v3.71.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 45 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsCmd added in v3.64.2

type AnnotationsCmd struct {
	BuildNumber string `arg:"" help:"Build number, org/pipeline/number, or Buildkite build URL"`
	Pipeline    string `help:"Pipeline slug or org/pipeline. Inferred from configuration or repository if omitted." short:"p"`
	output.OutputFlags
}

func (*AnnotationsCmd) Help added in v3.64.2

func (c *AnnotationsCmd) Help() string

func (*AnnotationsCmd) Run added in v3.64.2

func (c *AnnotationsCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type CancelCmd

type CancelCmd struct {
	BuildNumber string `arg:"" help:"Build number to cancel"`
	Pipeline    string `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Web         bool   `help:"Open the build in a web browser after it has been cancelled." short:"w"`
}

func (*CancelCmd) Help

func (c *CancelCmd) Help() string

func (*CancelCmd) Run

func (c *CancelCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type CompareCmd added in v3.64.2

type CompareCmd struct {
	BuildNumber string `arg:"" help:"Target build number, org/pipeline/number, or Buildkite build URL"`
	Baseline    *int   `help:"Baseline build number in the same pipeline (otherwise an earlier passed build on the same branch)."`
	Pipeline    string `help:"Pipeline slug or org/pipeline. Inferred from configuration or repository if omitted." short:"p"`
	output.OutputFlags
}

func (*CompareCmd) Help added in v3.64.2

func (c *CompareCmd) Help() string

func (*CompareCmd) Run added in v3.64.2

func (c *CompareCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type CreateCmd

type CreateCmd struct {
	Message               string   `help:"Description of the build. If left blank, the commit message will be used once the build starts." short:"m"`
	Commit                string   `help:"The commit to build." short:"c" default:"HEAD"`
	Branch                string   `help:"The branch to build. Defaults to the default branch of the pipeline." short:"b"`
	Author                string   `help:"Author of the build. Supports: \"Name <email>\", \"email@domain.com\", \"Full Name\", or \"username\"" short:"a"`
	Web                   bool     `help:"Open the build in a web browser after it has been created." short:"w"`
	Pipeline              string   `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Env                   []string `help:"Set environment variables for the build (KEY=VALUE)" short:"e" sep:"none"`
	Metadata              []string `help:"Set metadata for the build (KEY=VALUE)" short:"M" sep:"none"`
	IgnoreBranchFilters   bool     `help:"Ignore branch filters for the pipeline" short:"i"`
	EnvFile               string   `help:"Set the environment variables for the build via an environment file" short:"f"`
	PullRequestID         int64    `help:"Pull request number for the build."`
	PullRequestBaseBranch string   `help:"Base branch of the pull request."`
	PullRequestRepository string   `help:"Repository URL of the pull request's source branch."`
}

func (*CreateCmd) Help

func (c *CreateCmd) Help() string

func (*CreateCmd) Run

func (c *CreateCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type DownloadCmd

type DownloadCmd struct {
	BuildNumber    string `arg:"" optional:"" help:"Build number to download (omit for most recent build)"`
	Pipeline       string `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Branch         string `help:"Filter builds to this branch." short:"b"`
	User           string `help:"Filter builds to this user. You can use name or email." short:"u" xor:"userfilter"`
	Mine           bool   `help:"Filter builds to only my user." short:"m" xor:"userfilter"`
	ArtifactsPath  string `` /* 139-byte string literal not displayed */
	ArtifactsState string `help:"Filter artifacts to download by state. Must be one of: new, finished, error, deleted, expired."`
}

func (*DownloadCmd) Help

func (c *DownloadCmd) Help() string

func (*DownloadCmd) Run

func (c *DownloadCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type FailedTestsCmd added in v3.64.2

type FailedTestsCmd struct {
	BuildNumber string `arg:"" help:"Build number, org/pipeline/number, or Buildkite build URL"`
	Pipeline    string `help:"Pipeline slug or org/pipeline. Inferred from configuration or repository if omitted." short:"p"`
	output.OutputFlags
}

func (*FailedTestsCmd) Help added in v3.64.2

func (c *FailedTestsCmd) Help() string

func (*FailedTestsCmd) Run added in v3.64.2

func (c *FailedTestsCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ListCmd

type ListCmd struct {
	Pipeline string            `help:"Pipeline slug (uses the selected organization), org/pipeline, or Buildkite pipeline URL." short:"p"`
	Since    string            `help:"Filter builds created since this time (e.g. 1h, 30m)"`
	Until    string            `help:"Filter builds created before this time (e.g. 1h, 30m)"`
	Duration string            `help:"Filter by duration (e.g. >5m, <10m, 20m) - supports >, <, >=, <= operators"`
	State    []string          `help:"Filter by build state"`
	Branch   []string          `help:"Filter by branch name"`
	Creator  string            `help:"Filter by creator (email address or user ID)"`
	Commit   string            `help:"Filter by commit SHA"`
	Message  string            `help:"Filter by message content"`
	MetaData map[string]string `help:"Filter by build meta-data (key=value format, can be specified multiple times)"`
	Limit    int               `help:"Maximum number of builds to return" default:"50"`
	NoLimit  bool              `help:"Fetch all builds (overrides --limit)"`
	Summary  bool              `help:"Return metadata only for fast state checks, polling, scripts, and LLM agents."`
	output.OutputFlags
}

func (*ListCmd) Help

func (c *ListCmd) Help() string

func (*ListCmd) Run

func (c *ListCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type RebuildCmd

type RebuildCmd struct {
	BuildNumber string `arg:"" optional:"" help:"Build number to rebuild (omit for most recent build)"`
	Pipeline    string `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Branch      string `help:"Filter builds to this branch." short:"b"`
	User        string `help:"Filter builds to this user. You can use name or email." short:"u" xor:"userfilter"`
	Mine        bool   `help:"Filter builds to only my user." short:"m" xor:"userfilter"`
	Web         bool   `help:"Open the build in a web browser after it has been created." short:"w"`
}

func (*RebuildCmd) Help

func (c *RebuildCmd) Help() string

func (*RebuildCmd) Run

func (c *RebuildCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type RetryFailedJobsCmd added in v3.64.2

type RetryFailedJobsCmd struct {
	BuildNumber string `arg:"" help:"Build number, org/pipeline/number, or Buildkite build URL"`
	Pipeline    string `help:"Pipeline slug or org/pipeline. Inferred from configuration or repository if omitted." short:"p"`
	States      string `` /* 137-byte string literal not displayed */
	output.OutputFlags
}

func (*RetryFailedJobsCmd) Help added in v3.64.2

func (c *RetryFailedJobsCmd) Help() string

func (*RetryFailedJobsCmd) Run added in v3.64.2

func (c *RetryFailedJobsCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type StepUploadsCmd added in v3.64.2

type StepUploadsCmd struct {
	BuildNumber string `arg:"" help:"Build number, org/pipeline/number, or Buildkite build URL"`
	Pipeline    string `help:"Pipeline slug or org/pipeline. Inferred from configuration or repository if omitted." short:"p"`
	output.OutputFlags
}

func (*StepUploadsCmd) Help added in v3.64.2

func (c *StepUploadsCmd) Help() string

func (*StepUploadsCmd) Run added in v3.64.2

func (c *StepUploadsCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ViewCmd

type ViewCmd struct {
	BuildNumber string   `arg:"" optional:"" help:"Build number to view (omit for most recent build)"`
	Pipeline    string   `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Branch      string   `help:"Filter builds to this branch." short:"b"`
	User        string   `help:"Filter builds to this user. You can use name or email." short:"u" xor:"userfilter"`
	Mine        bool     `help:"Filter builds to only my user." xor:"userfilter"`
	JobStates   []string `` /* 132-byte string literal not displayed */
	Web         bool     `help:"Open the build in a web browser." short:"w" xor:"viewmode"`
	Summary     bool     `help:"Return metadata only for fast state checks, polling, scripts, and LLM agents." xor:"viewmode"`
	Recursive   bool     `help:"Return current hard-failed and timed-out command jobs across the trigger tree, with log pointers." xor:"viewmode"`
	output.OutputFlags
}

func (*ViewCmd) Help

func (c *ViewCmd) Help() string

func (*ViewCmd) Run

func (c *ViewCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

func (*ViewCmd) Validate added in v3.61.0

func (c *ViewCmd) Validate() error

type WatchCmd

type WatchCmd struct {
	BuildNumber string        `arg:"" optional:"" help:"Build number to watch (omit for most recent build)"`
	Pipeline    string        `help:"The pipeline to use. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." short:"p"`
	Branch      string        `help:"The branch to watch builds for." short:"b"`
	Interval    int           `help:"Polling interval in seconds" default:"1"`
	Timeout     time.Duration `` /* 137-byte string literal not displayed */
}

func (*WatchCmd) Help

func (c *WatchCmd) Help() string

func (*WatchCmd) Run

func (c *WatchCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

func (*WatchCmd) Validate added in v3.57.0

func (c *WatchCmd) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL