File tree Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 7
7
value : |
8
8
**\ExtensionsMetadataGeneratorTests.csproj
9
9
**\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()
10
22
11
23
steps :
12
24
- template : /eng/ci/templates/install-dotnet.yml@self
@@ -16,14 +28,14 @@ jobs:
16
28
inputs :
17
29
command : custom
18
30
custom : restore
19
- arguments : -v m
31
+ arguments : -v m -bl:$(log_dir)/restore.binlog
20
32
projects : $(test_projects)
21
33
22
34
- task : DotNetCoreCLI@2
23
35
displayName : Build
24
36
inputs :
25
37
command : build
26
- arguments : -v m -c release --no-restore
38
+ arguments : -v m -c release --no-restore -bl:$(log_dir)/build.binlog
27
39
projects : $(test_projects)
28
40
29
41
- task : DotNetCoreCLI@2
Original file line number Diff line number Diff line change 11
11
test_projects : test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
12
12
is_release : $[contains(variables['Build.SourceBranch'], 'release/')]
13
13
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()
14
25
15
26
steps :
16
27
- template : /eng/ci/templates/install-dotnet.yml@self
@@ -84,14 +95,14 @@ jobs:
84
95
inputs :
85
96
command : custom
86
97
custom : restore
87
- arguments : -v m
98
+ arguments : -v m -bl:$(log_dir)/restore.binlog
88
99
projects : $(test_projects)
89
100
90
101
- task : DotNetCoreCLI@2
91
102
displayName : Build
92
103
inputs :
93
104
command : build
94
- arguments : -v m -c release --no-restore
105
+ arguments : -v m -c release --no-restore -bl:$(log_dir)/build.binlog
95
106
projects : $(test_projects)
96
107
97
108
- task : DotNetCoreCLI@2
Original file line number Diff line number Diff line change 9
9
10
10
variables :
11
11
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()
12
23
13
24
steps :
14
25
- template : /eng/ci/templates/install-dotnet.yml@self
@@ -54,14 +65,14 @@ jobs:
54
65
inputs :
55
66
command : custom
56
67
custom : restore
57
- arguments : -v m
68
+ arguments : -v m -bl:$(log_dir)/restore.binlog
58
69
projects : $(test_projects)
59
70
60
71
- task : DotNetCoreCLI@2
61
72
displayName : Build
62
73
inputs :
63
74
command : build
64
- arguments : -v m -c release --no-restore
75
+ arguments : -v m -c release --no-restore -bl:$(log_dir)/build.binlog
65
76
projects : $(test_projects)
66
77
67
78
- task : DotNetCoreCLI@2
You can’t perform that action at this time.
0 commit comments