Skip to content

Commit

Permalink
Merged PR 357311: Prevent error output to not fail in VSTS powershell…
Browse files Browse the repository at this point in the history
… session.

Prevent error output to not fail in VSTS powershell session.
  • Loading branch information
Jiri Appl authored and Jiri Appl committed Aug 4, 2017
1 parent d4ffa0e commit a4da383
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ if ($LastExitCode)
Throw "Docker Pull Failed With Exit Code $LastExitCode"
}

docker stop $image_name
docker stop $image_name 2>&1 | Out-String

docker rm $image_name
docker rm $image_name 2>&1 | Out-String

$run_command = "docker run "
if (-not $Foreground)
Expand Down

0 comments on commit a4da383

Please sign in to comment.