File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ parameters:
11
11
- name : isIntegration
12
12
type : string
13
13
14
+ variables :
15
+ isIntegration : ${{ parameters.isIntegration }}
16
+
14
17
steps :
15
18
- checkout : self
16
19
clean : true
@@ -51,18 +54,18 @@ steps:
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'
You can’t perform that action at this time.
0 commit comments