Skip to content

Commit 87d8e1d

Browse files
committed
Add binlogs
1 parent 1ef2fdf commit 87d8e1d

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-6
lines changed

eng/ci/templates/jobs/run-unit-tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ jobs:
77
value: |
88
**\ExtensionsMetadataGeneratorTests.csproj
99
**\WebJobs.Script.Tests.csproj
10+
- name: log_dir
11+
value: $(Build.ArtifactStagingDirectory)/log
12+
13+
templateContext:
14+
outputParentDirectory: $(Build.ArtifactStagingDirectory)
15+
outputs:
16+
- output: pipelineArtifact
17+
displayName: Publish logs
18+
path: $(log_dir)
19+
artifact: Unit_Test_Log
20+
sbomEnabled: false
21+
condition: always()
1022

1123
steps:
1224
- template: /eng/ci/templates/install-dotnet.yml@self
@@ -16,14 +28,14 @@ jobs:
1628
inputs:
1729
command: custom
1830
custom: restore
19-
arguments: -v m
31+
arguments: -v m -bl:$(log_dir)/restore.binlog
2032
projects: $(test_projects)
2133

2234
- task: DotNetCoreCLI@2
2335
displayName: Build
2436
inputs:
2537
command: build
26-
arguments: -v m -c release --no-restore
38+
arguments: -v m -c release --no-restore -bl:$(log_dir)/build.binlog
2739
projects: $(test_projects)
2840

2941
- task: DotNetCoreCLI@2

eng/ci/templates/official/jobs/run-integration-tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ jobs:
1111
test_projects: test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
1212
is_release: $[contains(variables['Build.SourceBranch'], 'release/')]
1313
test_args: -c release --no-build
14+
log_dir: $(Build.ArtifactStagingDirectory)/log
15+
16+
templateContext:
17+
outputParentDirectory: $(Build.ArtifactStagingDirectory)
18+
outputs:
19+
- output: pipelineArtifact
20+
displayName: Publish logs
21+
path: $(log_dir)
22+
artifact: Integration_Test_Log
23+
sbomEnabled: false
24+
condition: always()
1425

1526
steps:
1627
- template: /eng/ci/templates/install-dotnet.yml@self
@@ -84,14 +95,14 @@ jobs:
8495
inputs:
8596
command: custom
8697
custom: restore
87-
arguments: -v m
98+
arguments: -v m -bl:$(log_dir)/restore.binlog
8899
projects: $(test_projects)
89100

90101
- task: DotNetCoreCLI@2
91102
displayName: Build
92103
inputs:
93104
command: build
94-
arguments: -v m -c release --no-restore
105+
arguments: -v m -c release --no-restore -bl:$(log_dir)/build.binlog
95106
projects: $(test_projects)
96107

97108
- task: DotNetCoreCLI@2

eng/ci/templates/official/jobs/run-non-e2e-tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ jobs:
99

1010
variables:
1111
test_projects: test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
12+
log_dir: $(Build.ArtifactStagingDirectory)/log
13+
14+
templateContext:
15+
outputParentDirectory: $(Build.ArtifactStagingDirectory)
16+
outputs:
17+
- output: pipelineArtifact
18+
displayName: Publish logs
19+
path: $(log_dir)
20+
artifact: Non_E2E_Test_Log
21+
sbomEnabled: false
22+
condition: always()
1223

1324
steps:
1425
- template: /eng/ci/templates/install-dotnet.yml@self
@@ -54,14 +65,14 @@ jobs:
5465
inputs:
5566
command: custom
5667
custom: restore
57-
arguments: -v m
68+
arguments: -v m -bl:$(log_dir)/restore.binlog
5869
projects: $(test_projects)
5970

6071
- task: DotNetCoreCLI@2
6172
displayName: Build
6273
inputs:
6374
command: build
64-
arguments: -v m -c release --no-restore
75+
arguments: -v m -c release --no-restore -bl:$(log_dir)/build.binlog
6576
projects: $(test_projects)
6677

6778
- task: DotNetCoreCLI@2

0 commit comments

Comments
 (0)