pipeline

package
v3.65.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 33 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 ConvertCmd added in v3.21.0

type ConvertCmd struct {
	File    string `help:"Path to the pipeline file to convert (required)" short:"F" required:""`
	Vendor  string `` /* 126-byte string literal not displayed */
	Output  string `help:"Custom path to save the converted pipeline (default: .buildkite/pipeline.<vendor>.yml)" short:"o"`
	Timeout int    `help:"The time (in seconds) after which a conversion should be cancelled" default:"300"`
}

func (*ConvertCmd) Help added in v3.21.0

func (c *ConvertCmd) Help() string

func (*ConvertCmd) Run added in v3.21.0

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

type CopyCmd added in v3.17.0

type CopyCmd struct {
	Pipeline         string            `arg:"" help:"Source pipeline to copy (slug or org/slug). Uses current pipeline if not specified." optional:""`
	Org              string            `kong:"-"` // Supplied by the global --org flag.
	Target           string            `help:"Name for the new pipeline, or org/name to copy to a different organization" short:"t"`
	ClusterUUID      string            `help:"Cluster UUID for the new pipeline" name:"cluster-uuid"`
	ClusterName      string            `help:"Cluster name for the new pipeline (resolved to UUID)" name:"cluster-name"`
	ClusterShorthand string            `short:"c" hidden:"" name:"c" help:""`
	DryRun           bool              `help:"Show what would be copied without creating the pipeline"`
	Teams            map[string]string `` /* 157-byte string literal not displayed */
	output.OutputFlags
}

func (*CopyCmd) Help added in v3.17.0

func (c *CopyCmd) Help() string

func (*CopyCmd) Run added in v3.17.0

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

func (*CopyCmd) Validate added in v3.33.0

func (c *CopyCmd) Validate() error

type CreateCmd

type CreateCmd struct {
	Name             string            `arg:"" help:"Name of the pipeline (defaults to Git origin or directory name)" optional:""`
	Org              string            `kong:"-"` // Supplied by the global --org flag.
	Description      string            `help:"Description of the pipeline" short:"d"`
	Repository       string            `help:"Repository URL" short:"r"`
	Template         string            `` /* 141-byte string literal not displayed */
	ClusterUUID      string            `help:"Cluster UUID to assign the pipeline to" name:"cluster-uuid"`
	ClusterName      string            `help:"Cluster name to assign the pipeline to (resolved to UUID)" name:"cluster-name"`
	ClusterShorthand string            `short:"c" hidden:"" name:"c" help:""`
	CreateWebhook    bool              `help:"Create an SCM webhook for the pipeline (GitHub and GitHub Enterprise only)" short:"W"`
	DryRun           bool              `help:"Simulate pipeline creation without actually creating it"`
	Teams            map[string]string `` /* 147-byte string literal not displayed */
	output.OutputFlags
}

func (*CreateCmd) Help

func (c *CreateCmd) Help() string

func (*CreateCmd) Run

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

func (*CreateCmd) Validate added in v3.33.0

func (c *CreateCmd) Validate() error

type ListCmd

type ListCmd struct {
	Org        string `kong:"-"` // Supplied by the global --org flag.
	Name       string `help:"Filter pipelines by name (supports partial matches, case insensitive)" short:"n"`
	Repository string `help:"Filter pipelines by repository URL (supports partial matches, case insensitive)" short:"r"`
	Limit      int    `help:"Maximum number of pipelines to return (max: 3000)" short:"l" default:"100"`
	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 PipelineDryRun

type PipelineDryRun struct {
	ID                              string               `json:"id"`
	GraphQLID                       string               `json:"graphql_id"`
	URL                             string               `json:"url"`
	WebURL                          string               `json:"web_url"`
	Name                            string               `json:"name"`
	Description                     string               `json:"description"`
	Slug                            string               `json:"slug"`
	Repository                      string               `json:"repository"`
	ClusterID                       string               `json:"cluster_id"`
	ClusterURL                      string               `json:"cluster_url"`
	BranchConfiguration             string               `json:"branch_configuration"`
	DefaultBranch                   string               `json:"default_branch"`
	SkipQueuedBranchBuilds          bool                 `json:"skip_queued_branch_builds"`
	SkipQueuedBranchBuildsFilter    string               `json:"skip_queued_branch_builds_filter"`
	CancelRunningBranchBuilds       bool                 `json:"cancel_running_branch_builds"`
	CancelRunningBranchBuildsFilter string               `json:"cancel_running_branch_builds_filter"`
	BuildsURL                       string               `json:"builds_url"`
	BadgeURL                        string               `json:"badge_url"`
	CreatedAt                       *buildkite.Timestamp `json:"created_at"`
	Env                             map[string]any       `json:"env"`
	ScheduledBuildsCount            int                  `json:"scheduled_builds_count"`
	RunningBuildsCount              int                  `json:"running_builds_count"`
	ScheduledJobsCount              int                  `json:"scheduled_jobs_count"`
	RunningJobsCount                int                  `json:"running_jobs_count"`
	WaitingJobsCount                int                  `json:"waiting_jobs_count"`
	Visibility                      string               `json:"visibility"`
	Tags                            []string             `json:"tags"`
	Configuration                   string               `json:"configuration"`
	Steps                           []buildkite.Step     `json:"steps"`
	Provider                        buildkite.Provider   `json:"provider"`
	PipelineTemplateUUID            string               `json:"pipeline_template_uuid"`
	AllowRebuilds                   bool                 `json:"allow_rebuilds"`
	Emoji                           *string              `json:"emoji"`
	Color                           *string              `json:"color"`
	CreatedBy                       *buildkite.User      `json:"created_by"`
	Teams                           map[string]string    `json:"teams,omitempty"`
}

type ValidateCmd

type ValidateCmd struct {
	File []string `help:"Path to the pipeline YAML file(s) to validate" short:"f"`
}

func (*ValidateCmd) Help

func (c *ValidateCmd) Help() string

func (*ValidateCmd) Run

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

type ViewCmd

type ViewCmd struct {
	// Pipeline is the positional arg; PipelineFlag (--pipeline/-p) takes priority when both are provided.
	Pipeline     string `arg:"" help:"The pipeline to view. This can be a {pipeline slug} or in the format {org slug}/{pipeline slug}." optional:""`
	PipelineFlag string ``         /* 129-byte string literal not displayed */
	Org          string `kong:"-"` // Supplied by the global --org flag.
	Web          bool   `help:"Open the pipeline in a web browser." short:"w"`
	output.OutputFlags
}

func (*ViewCmd) Help

func (c *ViewCmd) Help() string

func (*ViewCmd) Run

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

Jump to

Keyboard shortcuts

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