Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvKey = "BUILDKITE" Integration = "buildkite" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ci ¶
type Ci struct{}
func (Ci) MapRepository ¶
MapRepository returns the repository according to the following rules:
- If BUILDKITE_REPO starts with "http(s)://" and ends with ".git", use capture group to find repository.
- If BUILDKITE_REPO starts with "git@" and ends with ".git", use capture group to find repository.
- return BUILDKITE_REPO.
func (Ci) MapRepositoryUrl ¶
MapRepositoryUrl returns the repository url according to the following rules:
- If buildkiteRepo starts with "http(s)://" and ends with ".git", use capture group to find repository.
- If buildkiteRepo is of the form "git@github.com:organisation/reponame.git", rewrite and use "https://github.com/organisation/reponame".
- return buildkiteRepo.
Click to show internal directories.
Click to hide internal directories.