Documentation ¶
Index ¶
- Constants
- func BranchPattern(gitKind string) string
- func CheckHealth(url string) error
- func CreateFolderXml(folderUrl string, name string) string
- func CreateMultiBranchProjectXml(info *gits.GitRepository, gitProvider gits.GitProvider, credentials string, ...) string
- func EditUserAuth(url string, configService jenkauth.ConfigService, config *jenkauth.AuthConfig, ...) (jenkauth.UserAuth, error)
- func GetJenkinsClient(url string, batch bool, configService jenkauth.ConfigService, ...) (gojenkins.JenkinsClient, error)
- func IsMultiBranchProject(job *gojenkins.Job) bool
- func IsPipeline(j *gojenkins.Job) bool
- func JenkinsApiURL(url string) string
- func JenkinsLoginURL(url string) string
- func JenkinsTokenURL(url string) string
- func JobName(prefix string, j *gojenkins.Job) string
- func LoadAllJenkinsJobs(jenkinsClient gojenkins.JenkinsClient) ([]*gojenkins.Job, error)
- func PrintGetTokenFromURL(out io.Writer, tokenUrl string) (int, error)
Constants ¶
View Source
const ( // DefaultJenkinsCredentialsPrefix prefix for jenkins credentials DefaultJenkinsCredentialsPrefix = "jenkins-x-" // Chartmuseum name for chartmuseum Chartmuseum = "chartmuseum" // BranchPatternMasterPRsAndFeatures only match master, PRs and features BranchPatternMasterPRsAndFeatures = "master|PR-.*|feature.*" // BranchPatternMatchEverything matches everything BranchPatternMatchEverything = ".*" )
Variables ¶
This section is empty.
Functions ¶
func BranchPattern ¶
func CheckHealth ¶ added in v1.3.845
CheckHealth checks the health of Jenkins server using the login URL
func CreateFolderXml ¶
func CreateMultiBranchProjectXml ¶
func CreateMultiBranchProjectXml(info *gits.GitRepository, gitProvider gits.GitProvider, credentials string, branches string, jenkinsfile string) string
func EditUserAuth ¶
func EditUserAuth(url string, configService jenkauth.ConfigService, config *jenkauth.AuthConfig, auth *jenkauth.UserAuth, tokenUrl string, batchMode bool, in terminal.FileReader, out terminal.FileWriter, outErr io.Writer) (jenkauth.UserAuth, error)
func GetJenkinsClient ¶
func GetJenkinsClient(url string, batch bool, configService jenkauth.ConfigService, in terminal.FileReader, out terminal.FileWriter, outErr io.Writer) (gojenkins.JenkinsClient, error)
func IsMultiBranchProject ¶
func IsMultiBranchProject(job *gojenkins.Job) bool
IsMultiBranchProject returns true if this job is a multi branch project
func IsPipeline ¶ added in v1.3.883
func IsPipeline(j *gojenkins.Job) bool
IsPipeline checks if the job is a pipeline job
func JenkinsApiURL ¶
func JenkinsLoginURL ¶ added in v1.3.845
JenkinsLoginURL returns the Jenkins login URL
func JenkinsTokenURL ¶
func JobName ¶ added in v1.3.883
JobName returns the Jenkins job name starting with the given prefix
func LoadAllJenkinsJobs ¶
func LoadAllJenkinsJobs(jenkinsClient gojenkins.JenkinsClient) ([]*gojenkins.Job, error)
LoadAllJenkinsJobs Loads all the jobs in full from the Jenkins client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.