jenkins

package
v1.3.847 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 16 Imported by: 8

Documentation

Index

Constants

View Source
const (
	DefaultJenkinsCredentialsPrefix = "jenkins-x-"

	DefaultJenkinsfile = "Jenkinsfile"

	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 BranchPattern(gitKind string) string

func CheckHealth added in v1.3.845

func CheckHealth(url string) error

CheckHealth checks the health of Jenkins server using the login URL

func CreateFolderXml

func CreateFolderXml(folderUrl string, name string) string

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 JenkinsApiURL

func JenkinsApiURL(url string) string

func JenkinsLoginURL added in v1.3.845

func JenkinsLoginURL(url string) string

JenkinsLoginURL returns the Jenkins login URL

func JenkinsTokenURL

func JenkinsTokenURL(url string) string

func LoadAllJenkinsJobs

func LoadAllJenkinsJobs(jenkinsClient gojenkins.JenkinsClient) ([]*gojenkins.Job, error)

LoadAllJenkinsJobs Loads all the jobs in full from the Jenkins client

func PrintGetTokenFromURL

func PrintGetTokenFromURL(out io.Writer, tokenUrl string) (int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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