@@ -46,25 +46,24 @@ steps:
4646 mergeTestResults : true
4747 testRunTitle : $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
4848
49- - ${{ if eq(parameters.isIntegration, true) }} :
50- - powershell : |
51- $tempPath = [System.IO.Path]::GetTempPath()
52- echo "Temp Path: $tempPath"
53- Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
54- displayName: 'Copy .cpuprofile files to out/logs'
55- condition: succeededOrFailed()
49+ - powershell : |
50+ $tempPath = [System.IO.Path]::GetTempPath()
51+ echo "Temp Path: $tempPath"
52+ Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
53+ displayName : ' Copy .cpuprofile files to out/logs'
54+ condition : eq(${{ parameters.isIntegration }}, true)
5655
57- - ${{ if eq(variables['System.TeamProject'], 'internal') }} :
58- - task : 1ES.PublishPipelineArtifact@1
59- condition : succeededOrFailed( )
60- displayName : ' Upload integration test logs'
61- inputs :
62- path : ' $(Build.SourcesDirectory)/out/logs'
63- artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
64- - ${{ else }} :
65- - task : PublishPipelineArtifact@1
66- condition : succeededOrFailed( )
67- displayName : ' Upload integration test logs'
68- inputs :
69- targetPath : ' $(Build.SourcesDirectory)/out/logs'
70- artifactName : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
56+ - ${{ if eq(variables['System.TeamProject'], 'internal') }} :
57+ - task : 1ES.PublishPipelineArtifact@1
58+ condition : eq(${{ parameters.isIntegration }}, true )
59+ displayName : ' Upload integration test logs'
60+ inputs :
61+ path : ' $(Build.SourcesDirectory)/out/logs'
62+ artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
63+ - ${{ else }} :
64+ - task : PublishPipelineArtifact@1
65+ condition : eq(${{ parameters.isIntegration }}, true )
66+ displayName : ' Upload integration test logs'
67+ inputs :
68+ targetPath : ' $(Build.SourcesDirectory)/out/logs'
69+ artifactName : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
0 commit comments