From e663b737638574d77970bfcc526a74a4cdc10278 Mon Sep 17 00:00:00 2001 From: wildone Date: Fri, 18 Dec 2020 01:17:53 +1100 Subject: [PATCH] update helper to use script scope --- deploy.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.ps1 b/deploy.ps1 index 94774626d..9f17be97e 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -13,8 +13,8 @@ Param( . ".\scripts\functions.ps1" -$global:LOG_PATH = $LOG_PATH -$global:TEST_SELENIUM_URL = $TEST_SELENIUM_URL +$script:LOG_PATH = $LOG_PATH +$script:TEST_SELENIUM_URL = $TEST_SELENIUM_URL printSectionBanner "Deploying Monolith Package:" "warn" printSectionLine "mvn -Dvault.useProxy=false -DskipTests -e -U -P installdeploymentpackage clean install" @@ -24,10 +24,10 @@ printSectionLine "mvn -Dvault.useProxy=false -DskipTests -e -U -P installdeploym if ( $TEST_HOST -eq "localhost" ) { debug "Test host is set as localhost, updating to use local ip" "info" - $global:TEST_HOST="${LOCAL_IP}" + $script:TEST_HOST="${LOCAL_IP}" } -$global:AEM_AVAILABLE=$(testServer "${AEM_SCHEME}://${AEM_HOST}:${AEM_PORT}") +$script:AEM_AVAILABLE=$(testServer "${AEM_SCHEME}://${AEM_HOST}:${AEM_PORT}") printSectionLine "Is AEM at ${AEM_SCHEME}://${AEM_HOST}:${AEM_PORT} available? ${AEM_AVAILABLE}"