Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RepositoryLabelKey the label key for associating resources (Job/Task/Pipeline) to a repository RepositoryLabelKey = "git-operator.jenkins.io/repository" // CommitShaLabelKey the label key for associating the commit sha CommitShaLabelKey = "git-operator.jenkins.io/commit-sha" // RerunLabelKey the label key to force this job to retrigger RerunLabelKey = "git-operator.jenkins.io/rerun" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// Launch launches a new Job/Task/Pipeline for the given repository if there has been a git commit
// since the last
Launch(opts LaunchOptions) ([]runtime.Object, error)
}
Interface the interface for launching Jobs/Tasks when there is a git commit in a repository
type LaunchOptions ¶
type LaunchOptions struct {
// Repository the repository name, namespace and git URL
Repository repo.Repository
// GitSHA the latest git commit SHA of the repository
GitSHA string
// Dir the root directory of the git clone of the repository
Dir string
// NoResourceApply if specified disable applying resources found in `.jx/git-operator/resources/*.yaml`
NoResourceApply bool
}
LaunchOptions the options for launching a new Job/Task/Pipeline for a git repository
Click to show internal directories.
Click to hide internal directories.