Skip to content

Commit 9a6605d

Browse files
Update bito-cra.ps1 - release-1.5.6
1 parent 5ab5eb9 commit 9a6605d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

cra-scripts/bito-cra.ps1

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ function Validate-Mode {
8787
function Validate-Env {
8888
param($env_val)
8989

90-
if ($env_val -ne "prod" -and $env_val -ne "staging") {
91-
Write-Host "Invalid env value. Please enter either prod or staging."
90+
if ($env_val -ne "prod" -and $env_val -ne "staging" -and $env_val -ne "preprod") {
91+
Write-Host "Invalid env value. Please enter either prod or staging or preprod."
9292
exit 1
9393
}
9494
}
@@ -420,6 +420,12 @@ $optional_params_cli = @(
420420
"code_context"
421421
"cr_event_type"
422422
"posting_to_pr"
423+
"custom_rules.configured_ws_ids"
424+
"custom_rules.aws_access_key_id"
425+
"custom_rules.aws_secret_access_key"
426+
"custom_rules.region_name"
427+
"custom_rules.bucket_name"
428+
"custom_rules.aes_key"
423429
)
424430

425431
# Parameters that are required/optional in mode server
@@ -448,6 +454,12 @@ $optional_params_server = @(
448454
"git.domain"
449455
"code_context"
450456
"cr_event_type"
457+
"custom_rules.configured_ws_ids"
458+
"custom_rules.aws_access_key_id"
459+
"custom_rules.aws_secret_access_key"
460+
"custom_rules.region_name"
461+
"custom_rules.bucket_name"
462+
"custom_rules.aes_key"
451463
)
452464

453465
$bee_params = @(

0 commit comments

Comments
 (0)