File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ function Validate-GitProvider {
48
48
# Convert the input to uppercase
49
49
$git_provider_val = $git_provider_val.ToUpper ()
50
50
51
- # Check if the converted value is either "GITLAB" or "GITHUB"
52
- if ($git_provider_val -ne " GITLAB" -and $git_provider_val -ne " GITHUB" ) {
53
- Write-Host " Invalid git provider value. Please enter either GITLAB or GITHUB."
51
+ # 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 " ) {
53
+ Write-Host " Invalid git provider value. Please enter either GITLAB or GITHUB or BITBUCKET ."
54
54
exit 1
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ validate_url() {
48
48
validate_git_provider () {
49
49
local git_provider_val=$( echo " $1 " | tr ' [:lower:]' ' [:upper:]' )
50
50
51
- if [ " $git_provider_val " == " GITLAB" ] || [ " $git_provider_val " == " GITHUB" ]; then
51
+ if [ " $git_provider_val " == " GITLAB" ] || [ " $git_provider_val " == " GITHUB" ] || [ " $git_provider_val " == " BITBUCKET " ] ; then
52
52
echo $git_provider_val
53
53
else
54
- echo " Invalid git provider value. Please enter either GITLAB or GITHUB."
54
+ echo " Invalid git provider value. Please enter either GITLAB or GITHUB or BIBUCKET ."
55
55
exit 1
56
56
fi
57
57
}
@@ -620,7 +620,6 @@ if [ "$mode" == "server" ]; then
620
620
git_secret=$( encrypt_git_secret " $encryption_key " " $git_secret " )
621
621
docker_enc_params=" --git.secret=$git_secret --encryption_key=$encryption_key "
622
622
623
-
624
623
echo " Use below as Gitlab and Github Webhook secret:"
625
624
echo " $git_secret "
626
625
echo
You can’t perform that action at this time.
0 commit comments