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