@@ -9,7 +9,7 @@ parameters:
9
9
- name : testVSCodeVersion
10
10
type : string
11
11
- name : isIntegration
12
- type : string
12
+ type : boolean
13
13
14
14
steps :
15
15
- checkout : self
18
18
fetchTags : false
19
19
fetchDepth : 1
20
20
21
- - script : echo eq(${{ parameters.isIntegration }}, 'true') evaluates to ${{ eq(parameters.isIntegration, 'true') }}
22
-
23
21
- template : prereqs.yml
24
22
parameters :
25
23
dotnetVersion : ${{ parameters.dotnetVersion }}
@@ -48,24 +46,25 @@ steps:
48
46
mergeTestResults : true
49
47
testRunTitle : $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
50
48
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()
57
56
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