pipelines

package
v0.0.133 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OwnerLabels   = []string{"owner", "lighthouse.jenkins-x.io/refs.org"}
	RepoLabels    = []string{"repository", "lighthouse.jenkins-x.io/refs.repo"}
	BranchLabels  = []string{"branch", "lighthouse.jenkins-x.io/branch"}
	BuildLabels   = []string{"build", "lighthouse.jenkins-x.io/buildNum"}
	ContextLabels = []string{"context", "lighthouse.jenkins-x.io/context"}
)

Functions

func DefaultValues added in v0.0.123

func DefaultValues(a *v1.PipelineActivity)

DefaultValues default missing values from the lighthouse labels

func GetLabel

func GetLabel(m map[string]string, labels []string) string

GetLabel returns the first label value for the given strings

func Humanize

func Humanize(text string) string

Humanize splits into words and capitalises

func ToPipelineActivity

func ToPipelineActivity(pr *v1beta1.PipelineRun, pa *v1.PipelineActivity, overwriteSteps bool)

func ToPipelineActivityName

func ToPipelineActivityName(pr *v1beta1.PipelineRun, paList []v1.PipelineActivity) string

ToPipelineActivityName creates an activity name from a pipeline run

Types

type ActivityResolver added in v0.0.129

type ActivityResolver struct {
	// contains filtered or unexported fields
}

ActivityResolver a helper object to map PipelineRun objects to PipelineActivity resources

func NewActivityResolver added in v0.0.129

func NewActivityResolver(activities []v1.PipelineActivity) *ActivityResolver

NewActivityResolver creates a new resolver

func (*ActivityResolver) ToPipelineActivity added in v0.0.129

func (r *ActivityResolver) ToPipelineActivity(pr *v1beta1.PipelineRun) *v1.PipelineActivity

ToPipelineActivity converts the given PipelineRun to a PipelineActivity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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