Skip to content

Commit 5ab5eb9

Browse files
Update bito-cra.sh - release/1.5.6
1 parent 2d2f4c0 commit 5ab5eb9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

cra-scripts/bito-cra.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ validate_mode() {
8484
# Function to validate a env value i.e. prod or staging
8585
validate_env() {
8686
local env="$1"
87-
if [ "$env" == "prod" ] || [ "$env" == "staging" ]; then
87+
if [ "$env" == "prod" ] || [ "$env" == "staging" ] || [ "$env" == "preprod" ]; then
8888
#echo "Valid mode value"
8989
echo
9090
else
91-
echo "Invalid mode value. Please enter either prod or staging."
91+
echo "Invalid mode value. Please enter either prod or staging or preprod."
9292
exit 1
9393
fi
9494
}
@@ -431,6 +431,12 @@ optional_params_cli=(
431431
"nexus_url"
432432
"cr_event_type"
433433
"posting_to_pr"
434+
"custom_rules.configured_ws_ids"
435+
"custom_rules.aws_access_key_id"
436+
"custom_rules.aws_secret_access_key"
437+
"custom_rules.region_name"
438+
"custom_rules.bucket_name"
439+
"custom_rules.aes_key"
434440
)
435441

436442
# Parameters that are required/optional in mode server
@@ -460,6 +466,12 @@ optional_params_server=(
460466
"code_context"
461467
"nexus_url"
462468
"cr_event_type"
469+
"custom_rules.configured_ws_ids"
470+
"custom_rules.aws_access_key_id"
471+
"custom_rules.aws_secret_access_key"
472+
"custom_rules.region_name"
473+
"custom_rules.bucket_name"
474+
"custom_rules.aes_key"
463475
)
464476

465477
bee_params=(

0 commit comments

Comments
 (0)