Skip to content

Commit

Permalink
fix(engine): add configuration generation for bitbucketcloud (#4506)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <[email protected]>
  • Loading branch information
bnjjj authored and yesnault committed Aug 5, 2019
1 parent 41041f2 commit 6e505f6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions engine/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,18 @@ func configSetDefaults() {
defaults.SetDefaults(&github)
var bitbucket vcs.BitbucketServerConfiguration
defaults.SetDefaults(&bitbucket)
var bitbucketcloud vcs.BitbucketCloudConfiguration
defaults.SetDefaults(&bitbucketcloud)
var gitlab vcs.GitlabServerConfiguration
defaults.SetDefaults(&gitlab)
var gerrit vcs.GerritServerConfiguration
defaults.SetDefaults(&gerrit)
conf.VCS.Servers = map[string]vcs.ServerConfiguration{
"Github": vcs.ServerConfiguration{URL: "https://github.com", Github: &github},
"Bitbucket": vcs.ServerConfiguration{URL: "https://mybitbucket.com", Bitbucket: &bitbucket},
"Gitlab": vcs.ServerConfiguration{URL: "https://gitlab.com", Gitlab: &gitlab},
"Gerrit": vcs.ServerConfiguration{URL: "http://localhost:8080", Gerrit: &gerrit},
"Github": vcs.ServerConfiguration{URL: "https://github.com", Github: &github},
"Bitbucket": vcs.ServerConfiguration{URL: "https://mybitbucket.com", Bitbucket: &bitbucket},
"bitbucketcloud": vcs.ServerConfiguration{BitbucketCloud: &bitbucketcloud},
"Gitlab": vcs.ServerConfiguration{URL: "https://gitlab.com", Gitlab: &gitlab},
"Gerrit": vcs.ServerConfiguration{URL: "http://localhost:8080", Gerrit: &gerrit},
}
}
if conf.Repositories != nil {
Expand Down

0 comments on commit 6e505f6

Please sign in to comment.