trigger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelCommitSHA the label added to git operator Jobs to indicate the commit sha
	LabelCommitSHA = "git-operator.jenkins.io/commit-sha"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	options.BaseOptions

	Namespace   string
	JobSelector string
	CommitSHA   string
	KubeClient  kubernetes.Interface
}

Options contains the command line arguments for this command

func NewCmdJobTrigger

func NewCmdJobTrigger() (*cobra.Command, *Options)

NewCmdJobTrigger creates the new command

func (*Options) Run

func (o *Options) Run() error

func (*Options) Validate

func (o *Options) Validate() error

Validate verifies the settings are correct and we can lazy create any required resources

Jump to

Keyboard shortcuts

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