Skip to content

Commit

Permalink
Fix get address from Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jul 6, 2022
1 parent b724dd2 commit 32f273b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ibm/pipelines/windows-test-script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ function Run-Test {
oc login -u apikey -p ${API_KEY} ${IBM_OPENSHIFT_ENDPOINT}
Check-ExitCode $LASTEXITCODE

Shout "Getting Devfile proxy address"
$DEVFILE_PROXY=$(oc get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
if ( $LASTEXITCODE -eq 0 )
{
[Environment]::SetEnvironmentVariable("DEVFILE_PROXY", "$DEVFILE_PROXY")
}

Shout "Create Binary"
make install
Shout "Running test"
Expand Down

0 comments on commit 32f273b

Please sign in to comment.