@@ -9,7 +9,7 @@ parameters:
99 - name : testVSCodeVersion
1010 type : string
1111 - name : isIntegration
12- type : string
12+ type : boolean
1313
1414steps :
1515- checkout : self
1818 fetchTags : false
1919 fetchDepth : 1
2020
21- - script : echo eq(${{ parameters.isIntegration }}, 'true') evaluates to ${{ eq(parameters.isIntegration, 'true') }}
22-
2321- template : prereqs.yml
2422 parameters :
2523 dotnetVersion : ${{ parameters.dotnetVersion }}
@@ -48,24 +46,25 @@ steps:
4846 mergeTestResults : true
4947 testRunTitle : $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
5048
51- - powershell : |
52- $tempPath = [System.IO.Path]::GetTempPath()
53- echo "Temp Path: $tempPath"
54- Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
55- displayName : ' Copy .cpuprofile files to out/logs'
56- condition : ${{ eq(parameters.isIntegration, 'true') }}
49+ - ${{ if parameters.isIntegration }} :
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()
5756
58- - ${{ if eq(variables['System.TeamProject'], 'internal') }} :
59- - task : 1ES.PublishPipelineArtifact@1
60- condition : ${{ eq(parameters.isIntegration, 'true') }}
61- displayName : ' Upload integration test logs'
62- inputs :
63- path : ' $(Build.SourcesDirectory)/out/logs'
64- artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
65- - ${{ else }} :
66- - task : PublishPipelineArtifact@1
67- condition : ${{ eq(parameters.isIntegration, 'true') }}
68- displayName : ' Upload integration test logs'
69- inputs :
70- targetPath : ' $(Build.SourcesDirectory)/out/logs'
71- artifactName : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
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))'
0 commit comments