|
47 | 47 | variables: |
48 | 48 | functionAppOutputPath: $(Build.BinariesDirectory)/Published/${{ parameters.functionAppName }} |
49 | 49 | hostOutputPath: $(Build.BinariesDirectory)/Published/HostRuntime |
50 | | - hostAssemblyPath: $(hostOutputPath)/Microsoft.Azure.WebJobs.Script.WebHost.dll |
51 | 50 | logsDirectory: $(Build.ArtifactStagingDirectory)/Logs |
52 | 51 | stdOutLogsFilePath: $(logsDirectory)/std_out_logs.txt |
53 | 52 | stdErrorLogsFilePath: $(logsDirectory)/std_error_logs.txt |
|
66 | 65 | traceFileZipName: $(traceFileName).zip |
67 | 66 | traceFilePath: $(traceDirectory)/$(traceFileName) |
68 | 67 | traceZipFilePath: $(traceDirectory)/$(traceFileZipName) |
69 | | - traceAnalysisResultsDirectory: $(netTraceDirectory)/results |
70 | | - traceAnalysisResultMarkdownFilePath: $(traceAnalysisResultsDirectory)/$(traceFileNameWithoutExtension).md |
| 68 | + traceAnalysisResultMarkdownFilePath: $(traceDirectory)/results/$(traceFileNameWithoutExtension).md |
71 | 69 | traceLogPath: $(logsDirectory)/logs.log |
72 | 70 | ${{ if eq(parameters.os, 'Linux') }}: |
73 | 71 | publishRid: linux-x64 |
@@ -112,12 +110,8 @@ jobs: |
112 | 110 |
|
113 | 111 | - template: /eng/ci/templates/install-dotnet.yml@self |
114 | 112 |
|
115 | | - - task: UseDotNet@2 |
116 | | - displayName: Install .NET 10 |
117 | | - inputs: |
118 | | - packageType: sdk |
119 | | - version: 10.x |
120 | | - includePreviewVersions: true |
| 113 | + - script: dotnet --info |
| 114 | + displayName: "Print .NET Environment Info" |
121 | 115 |
|
122 | 116 | - ${{ if eq(parameters.functionAppName, 'HelloHttpNode') }}: |
123 | 117 | - task: CopyFiles@2 |
@@ -216,7 +210,6 @@ jobs: |
216 | 210 |
|
217 | 211 | - ${{ if and(eq(parameters.collectPerfViewProfileOnWindows, true), eq(parameters.instanceId, '1')) }}: # collect profile only on the first instance |
218 | 212 | - pwsh: | |
219 | | - New-Item -ItemType Directory -Path $(traceDirectory) |
220 | 213 | if (Test-Path $(perfViewPath)) { |
221 | 214 | $collectArguments = ${env:COLLECT_ARGUMENTS} |
222 | 215 | Write-Host "PerfView.exe found. Executing with arguments '$collectArguments'" |
@@ -280,8 +273,14 @@ jobs: |
280 | 273 | $attempt = 0 |
281 | 274 |
|
282 | 275 | while ($attempt -lt $maxAttempts) { |
283 | | - $files = Get-ChildItem -Path $(traceDirectory) |
| 276 | + $files = Get-ChildItem -Path $(traceDirectory) -File |
284 | 277 | $fileCount = $files.Count |
| 278 | +
|
| 279 | + Write-Host "Found $fileCount file(s) in $(traceDirectory):" |
| 280 | + foreach ($file in $files) { |
| 281 | + Write-Host " - $($file.Name)" |
| 282 | + } |
| 283 | + |
285 | 284 | if ($fileCount -eq 1 -and $files[0].Name -eq '$(traceFileZipName)') { |
286 | 285 | break |
287 | 286 | } else { |
|
0 commit comments