Skip to content

Commit 1d2838e

Browse files
authored
Upload artifact logs for CI Test runs (#7251)
1 parent f888a37 commit 1d2838e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.azure/pipelines/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ jobs:
291291
beforeBuild:
292292
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
293293
displayName: Setup IISExpress test certificates and schema
294+
artifacts:
295+
- name: Windows_Test_Logs
296+
path: artifacts/logs/
297+
publishOnError: true
294298
- template: jobs/default-build.yml
295299
parameters:
296300
condition: ne(variables['SkipTests'], 'true')
@@ -302,6 +306,10 @@ jobs:
302306
beforeBuild:
303307
- bash: "./eng/scripts/install-nginx-mac.sh"
304308
displayName: Installing Nginx
309+
artifacts:
310+
- name: MacOS_Test_Logs
311+
path: artifacts/logs/
312+
publishOnError: true
305313
- template: jobs/default-build.yml
306314
parameters:
307315
condition: ne(variables['SkipTests'], 'true')
@@ -313,6 +321,10 @@ jobs:
313321
beforeBuild:
314322
- bash: "./eng/scripts/install-nginx-linux.sh"
315323
displayName: Installing Nginx
324+
artifacts:
325+
- name: Linux_Test_Logs
326+
path: artifacts/logs/
327+
publishOnError: true
316328
- template: jobs/iisintegration-job.yml
317329
parameters:
318330
condition: ne(variables['SkipTests'], 'true')

.azure/pipelines/jobs/iisintegration-job.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ jobs:
1414
condition: always()
1515
jobName: ANCM_${{ parameters.TestGroupName }}
1616
jobDisplayName: "Test: ANCM ${{ parameters.TestGroupName }}"
17+
artifacts:
18+
- name: IIS_${{ parameters.TestGroupName }}_Logs
19+
path: artifacts/logs/
20+
publishOnError: true

0 commit comments

Comments
 (0)