@@ -11,16 +11,15 @@ parameters:
11
11
- name : isIntegration
12
12
type : string
13
13
14
- variables :
15
- isIntegration : ${{ parameters.isIntegration }}
16
-
17
14
steps :
18
15
- checkout : self
19
16
clean : true
20
17
submodules : true
21
18
fetchTags : false
22
19
fetchDepth : 1
23
20
21
+ - script : echo eq(${{ parameters.isIntegration }}, 'true') evaluates to ${{ eq(parameters.isIntegration, 'true)' }}
22
+
24
23
- template : prereqs.yml
25
24
parameters :
26
25
dotnetVersion : ${{ parameters.dotnetVersion }}
@@ -54,18 +53,18 @@ steps:
54
53
echo "Temp Path: $tempPath"
55
54
Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
56
55
displayName : ' Copy .cpuprofile files to out/logs'
57
- condition : eq(variables[' isIntegration'] , 'true')
56
+ condition : ${{ eq(parameters. isIntegration, 'true') }}
58
57
59
58
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
60
59
- task : 1ES.PublishPipelineArtifact@1
61
- condition : eq(variables[' isIntegration'] , 'true')
60
+ condition : ${{ eq(parameters. isIntegration, 'true') }}
62
61
displayName : ' Upload integration test logs'
63
62
inputs :
64
63
path : ' $(Build.SourcesDirectory)/out/logs'
65
64
artifact : ' Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
66
65
- ${{ else }} :
67
66
- task : PublishPipelineArtifact@1
68
- condition : eq(variables[' isIntegration'] , 'true')
67
+ condition : ${{ eq(parameters. isIntegration, 'true') }}
69
68
displayName : ' Upload integration test logs'
70
69
inputs :
71
70
targetPath : ' $(Build.SourcesDirectory)/out/logs'
0 commit comments