Skip to content

Commit

Permalink
add logging after tests (#7637)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoseley authored Feb 16, 2025
1 parent b430409 commit 39b8606
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion eng/pipelines/templates/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ steps:
- script: |
docker info
docker container ls
docker volume ls
docker network ls
docker network prune -f
displayName: List Docker containers and networks, and prune networks
displayName: List Docker containers and networks, and prune networks (Before Tests)
condition: always()
- script: ${{ parameters.dotnetScript }} dotnet-coverage collect
--settings $(Build.SourcesDirectory)/eng/CodeCoverage.config
Expand All @@ -87,6 +89,16 @@ steps:
DCP_PRESERVE_EXECUTABLE_LOGS: 1
displayName: Run non-helix tests

- ${{ if ne(parameters.isWindows, 'true') }}:
- script: |
docker info
docker container ls
docker volume ls
docker network ls
docker network prune -f
displayName: List Docker containers and networks, and prune networks (After Tests always)
condition: always()
# Helix tests are run only on the public pipeline
- ${{ if and(eq(parameters.runAsPublic, 'true'), eq(parameters.runHelixTests, 'true')) }}:
- script: ${{ parameters.buildScript }}
Expand Down

0 comments on commit 39b8606

Please sign in to comment.