Skip to content

Commit 39b8606

Browse files
authored
add logging after tests (#7637)
1 parent b430409 commit 39b8606

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

eng/pipelines/templates/BuildAndTest.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ steps:
6868
- script: |
6969
docker info
7070
docker container ls
71+
docker volume ls
7172
docker network ls
7273
docker network prune -f
73-
displayName: List Docker containers and networks, and prune networks
74+
displayName: List Docker containers and networks, and prune networks (Before Tests)
75+
condition: always()
7476
7577
- script: ${{ parameters.dotnetScript }} dotnet-coverage collect
7678
--settings $(Build.SourcesDirectory)/eng/CodeCoverage.config
@@ -87,6 +89,16 @@ steps:
8789
DCP_PRESERVE_EXECUTABLE_LOGS: 1
8890
displayName: Run non-helix tests
8991

92+
- ${{ if ne(parameters.isWindows, 'true') }}:
93+
- script: |
94+
docker info
95+
docker container ls
96+
docker volume ls
97+
docker network ls
98+
docker network prune -f
99+
displayName: List Docker containers and networks, and prune networks (After Tests always)
100+
condition: always()
101+
90102
# Helix tests are run only on the public pipeline
91103
- ${{ if and(eq(parameters.runAsPublic, 'true'), eq(parameters.runHelixTests, 'true')) }}:
92104
- script: ${{ parameters.buildScript }}

0 commit comments

Comments
 (0)