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 ¶
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 }
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
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)
Click to show internal directories.
Click to hide internal directories.