Skip to content

Commit

Permalink
fix(engine): add configuration generation for bitbucketcloud
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
  • Loading branch information
bnjjj committed Aug 5, 2019
1 parent 41041f2 commit a0600f5
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 a0600f5

Please sign in to comment.