builds

package
v1.3.551 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// LabelBuildName the label used on a pod for the build name
	LabelBuildName    = "build.knative.dev/buildName"
	LabelOldBuildName = "build-name"
)

Variables

This section is empty.

Functions

func GetBuildPods

func GetBuildPods(kubeClient kubernetes.Interface, ns string) ([]*corev1.Pod, error)

GetBuildPods returns all the build pods in the given namespace

func SortBuildPodInfos

func SortBuildPodInfos(buildPodInfos []*BuildPodInfo)

Types

type BuildPodInfo

type BuildPodInfo struct {
	PodName           string
	Name              string
	Organisation      string
	Repository        string
	Branch            string
	Build             string
	BuildNumber       int
	Pipeline          string
	LastCommitSHA     string
	LastCommitMessage string
	LastCommitURL     string
	GitURL            string
	FirstStepImage    string
	CreatedTime       time.Time
	GitInfo           *gits.GitRepositoryInfo
	Pod               *corev1.Pod
}

func CreateBuildPodInfo

func CreateBuildPodInfo(pod *corev1.Pod) *BuildPodInfo

CreateBuildPodInfo creates a BuildPodInfo from a Pod

func (*BuildPodInfo) MatchesPipeline

func (b *BuildPodInfo) MatchesPipeline(activity *v1.PipelineActivity) bool

MatchesPipeline returns true if this build info matches the given pipeline

func (*BuildPodInfo) Status

func (b *BuildPodInfo) Status() string

Status returns the build status

type BuildPodInfoFilter

type BuildPodInfoFilter struct {
	Owner      string
	Repository string
	Branch     string
	Build      string
	Filter     string
	Pending    bool
}

func (*BuildPodInfoFilter) BuildMatches

func (o *BuildPodInfoFilter) BuildMatches(info *BuildPodInfo) bool

BuildMatches returns true if the build info matches the filter

func (*BuildPodInfoFilter) BuildNumber

func (o *BuildPodInfoFilter) BuildNumber() int

BuildNumber returns the integer build number filter if specified

type BuildPodInfoOrder

type BuildPodInfoOrder []*BuildPodInfo

func (BuildPodInfoOrder) Len

func (a BuildPodInfoOrder) Len() int

func (BuildPodInfoOrder) Less

func (a BuildPodInfoOrder) Less(i, j int) bool

func (BuildPodInfoOrder) Swap

func (a BuildPodInfoOrder) Swap(i, j int)

type JenkinsConverter

type JenkinsConverter struct {
	Indentation          string
	KubernetesPluginMode bool
	ProjectConfig        *config.ProjectConfig
	// contains filtered or unexported fields
}

func NewJenkinsConverter

func NewJenkinsConverter(projectConfig *config.ProjectConfig) *JenkinsConverter

NewJenkinsConverter creates a new JenkinsConverter instance

func (*JenkinsConverter) String

func (j *JenkinsConverter) String() string

func (*JenkinsConverter) ToJenkinsfile

func (j *JenkinsConverter) ToJenkinsfile() (string, error)

Jump to

Keyboard shortcuts

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