@@ -8,6 +8,8 @@ parameters:
8
8
type : string
9
9
- name : testVSCodeVersion
10
10
type : string
11
+ - name : isIntegration
12
+ type : string
11
13
12
14
steps :
13
15
- checkout : self
@@ -33,13 +35,6 @@ steps:
33
35
DISPLAY : :99.0
34
36
CODE_VERSION : ${{ parameters.testVSCodeVersion }}
35
37
36
- - powershell : |
37
- $tempPath = [System.IO.Path]::GetTempPath()
38
- echo "Temp Path: $tempPath"
39
- Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
40
- displayName : ' Copy .cpuprofile files to out/logs'
41
- condition : succeededOrFailed()
42
-
43
38
- task : PublishTestResults@2
44
39
condition : succeededOrFailed()
45
40
displayName : ' Publish Test Results'
@@ -51,16 +46,28 @@ steps:
51
46
mergeTestResults : true
52
47
testRunTitle : $(System.StageDisplayName) $(Agent.JobName) (Attempt $(System.JobAttempt))
53
48
49
+ - powershell : |
50
+ Write-Host "##vso[task.setvariable variable=isIntegrationVar;]${{ parameters.isIntegration }}"
51
+ displayName : ' Set IsIntegration Variable'
52
+ condition : succeededOrFailed()
53
+
54
+ - powershell : |
55
+ $tempPath = [System.IO.Path]::GetTempPath()
56
+ echo "Temp Path: $tempPath"
57
+ Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
58
+ displayName : ' Copy .cpuprofile files to out/logs'
59
+ condition : eq(variables.isIntegrationVar, true)
60
+
54
61
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
55
62
- task : 1ES.PublishPipelineArtifact@1
56
- condition : succeededOrFailed( )
63
+ condition : eq(variables.isIntegrationVar, true )
57
64
displayName : ' Upload integration test logs'
58
65
inputs :
59
66
path : ' $(Build.SourcesDirectory)/out/logs'
60
67
artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
61
68
- ${{ else }} :
62
69
- task : PublishPipelineArtifact@1
63
- condition : succeededOrFailed( )
70
+ condition : eq(variables.isIntegrationVar, true )
64
71
displayName : ' Upload integration test logs'
65
72
inputs :
66
73
targetPath : ' $(Build.SourcesDirectory)/out/logs'
0 commit comments