Skip to content

Commit

Permalink
update helper to use script scope
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Dec 17, 2020
1 parent b68c4fe commit e663b73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}"

Expand Down

0 comments on commit e663b73

Please sign in to comment.