@@ -46,23 +46,26 @@ steps:
4646 mergeTestResults : true
4747 testRunTitle : $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
4848
49+ - powershell : |
50+ Write-Host "##vso[task.setvariable variable=isIntegration;]${{ parameters.isIntegration }}"
51+
4952 - powershell : |
5053 $tempPath = [System.IO.Path]::GetTempPath()
5154 echo "Temp Path: $tempPath"
5255 Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
5356 displayName : ' Copy .cpuprofile files to out/logs'
54- condition : eq( ${{ parameters .isIntegration }}, ' true' )
57+ condition : eq(variables .isIntegration, true)
5558
5659- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
5760 - task : 1ES.PublishPipelineArtifact@1
58- condition : eq( ${{ parameters .isIntegration }}, ' true' )
61+ condition : eq(variables .isIntegration, true)
5962 displayName : ' Upload integration test logs'
6063 inputs :
6164 path : ' $(Build.SourcesDirectory)/out/logs'
6265 artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
6366- ${{ else }} :
6467 - task : PublishPipelineArtifact@1
65- condition : eq( ${{ parameters .isIntegration }}, ' true' )
68+ condition : eq(variables .isIntegration, true)
6669 displayName : ' Upload integration test logs'
6770 inputs :
6871 targetPath : ' $(Build.SourcesDirectory)/out/logs'
0 commit comments