Skip to content

Instantly share code, notes, and snippets.

@WolfgangOfner
Created September 12, 2021 20:14
Show Gist options
  • Save WolfgangOfner/dfdf93b4fe6540c59ed4a1c037fdf5fb to your computer and use it in GitHub Desktop.
Save WolfgangOfner/dfdf93b4fe6540c59ed4a1c037fdf5fb to your computer and use it in GitHub Desktop.
- pwsh: |
$id=docker images --filter "label=test=$(Build.BuildId)" -q | Select-Object -First 1
docker create --name testcontainer $id
docker cp testcontainer:/testresults ./testresults
docker rm testcontainer
displayName: 'Copy test results'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment