Add Bitbucket installation type option (#3999)
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run

The Bitbucket source has some logic to autodetect whether it's talking to Bitbucket Cloud or something self-hosted, but we have encountered a situation in which it looks like this logic is causing problems. This new option will be used to disable that functionality to confirm this hypothesis.
This commit is contained in:
Cody Rose
2025-03-27 14:23:17 -04:00
committed by GitHub
parent 6e33fbc4f1
commit eacf176e0b
3 changed files with 868 additions and 791 deletions
File diff suppressed because it is too large Load Diff
+2
View File
@@ -658,6 +658,8 @@ func (m *Bitbucket) validate(all bool) error {
// no validation rules for SkipArchives
// no validation rules for InstallationType
switch v := m.Credential.(type) {
case *Bitbucket_Token:
if v == nil {
+7
View File
@@ -92,6 +92,12 @@ message AzureStorage {
repeated string storage_containers = 5;
}
enum BitbucketInstallationType {
AUTODETECT = 0;
CLOUD = 1;
DATA_CENTER = 2;
}
message Bitbucket {
string endpoint = 1 [(validate.rules).string.uri_ref = true];
oneof credential {
@@ -104,6 +110,7 @@ message Bitbucket {
repeated string ignore_repos = 6;
bool skip_binaries = 7;
bool skip_archives = 8;
BitbucketInstallationType installation_type = 9;
}
message CircleCI {