Skip to content

Commit 84911dc

Browse files
Update bito-cra.ps1 - removed bitbucket enterprise
1 parent 1dd0df5 commit 84911dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cra-scripts/bito-cra.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function Validate-GitProvider {
4949
$git_provider_val = $git_provider_val.ToUpper()
5050

5151
# Check if the converted value is either "GITLAB" or "GITHUB" or "BITBUCKET"
52-
if ($git_provider_val -ne "GITLAB" -and $git_provider_val -ne "GITHUB" -and $git_provider_val -ne "BITBUCKET" -and $git_provider_val -ne "BITBUCKET-ENTERPRISE") {
53-
Write-Host "Invalid git provider value. Please enter either GITLAB or GITHUB or BITBUCKET or BITBUCKET-ENTERPRISE."
52+
if ($git_provider_val -ne "GITLAB" -and $git_provider_val -ne "GITHUB" -and $git_provider_val -ne "BITBUCKET") {
53+
Write-Host "Invalid git provider value. Please enter either GITLAB or GITHUB or BITBUCKET."
5454
exit 1
5555
}
5656

@@ -698,7 +698,7 @@ $docker_enc_params=
698698

699699
if ($mode -eq "server") {
700700
if (-not([string]::IsNullOrEmpty($props[$param_bito_access_key])) -and -not([string]::IsNullOrEmpty($props[$param_git_access_token]))) {
701-
if ($props[$param_git_provider] -eq "BITBUCKET" -or $props[$param_git_provider] -eq "BITBUCKET-ENTERPRISE") {
701+
if ($props[$param_git_provider] -eq "BITBUCKET") {
702702
$git_secret = $props[$param_git_access_token]
703703
} else {
704704
$git_secret = "$($props[$param_bito_access_key])@#~^$($props[$param_git_access_token])"

0 commit comments

Comments
 (0)