File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ steps:
33
33
DISPLAY : :99.0
34
34
CODE_VERSION : ${{ parameters.testVSCodeVersion }}
35
35
36
+ - powershell : |
37
+ $tempPath = [System.IO.Path]::GetTempPath()
38
+ echo "Temp Path: $tempPath"
39
+ Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
40
+ displayName : ' Copy .cpuprofile files to out/logs'
41
+ condition : succeededOrFailed()
42
+
36
43
- task : PublishTestResults@2
37
44
condition : succeededOrFailed()
38
45
displayName : ' Publish Test Results'
@@ -46,14 +53,14 @@ steps:
46
53
47
54
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
48
55
- task : 1ES.PublishPipelineArtifact@1
49
- condition : failed ()
56
+ condition : succeededOrFailed ()
50
57
displayName : ' Upload integration test logs'
51
58
inputs :
52
59
path : ' $(Build.SourcesDirectory)/out/logs'
53
60
artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
54
61
- ${{ else }} :
55
62
- task : PublishPipelineArtifact@1
56
- condition : failed ()
63
+ condition : succeededOrFailed ()
57
64
displayName : ' Upload integration test logs'
58
65
inputs :
59
66
targetPath : ' $(Build.SourcesDirectory)/out/logs'
You can’t perform that action at this time.
0 commit comments