Skip to content

Commit fe908b8

Browse files
authored
Add logging
1 parent 927c7d8 commit fe908b8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

azure-pipelines/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ parameters:
1111
- name: isIntegration
1212
type: string
1313

14-
variables:
15-
isIntegration: ${{ parameters.isIntegration }}
16-
1714
steps:
1815
- checkout: self
1916
clean: true
2017
submodules: true
2118
fetchTags: false
2219
fetchDepth: 1
2320

21+
- script: echo eq(${{ parameters.isIntegration }}, 'true') evaluates to ${{ eq(parameters.isIntegration, 'true)' }}
22+
2423
- template: prereqs.yml
2524
parameters:
2625
dotnetVersion: ${{ parameters.dotnetVersion }}
@@ -54,18 +53,18 @@ steps:
5453
echo "Temp Path: $tempPath"
5554
Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
5655
displayName: 'Copy .cpuprofile files to out/logs'
57-
condition: eq(variables['isIntegration'], 'true')
56+
condition: ${{ eq(parameters.isIntegration, 'true') }}
5857

5958
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
6059
- task: 1ES.PublishPipelineArtifact@1
61-
condition: eq(variables['isIntegration'], 'true')
60+
condition: ${{ eq(parameters.isIntegration, 'true') }}
6261
displayName: 'Upload integration test logs'
6362
inputs:
6463
path: '$(Build.SourcesDirectory)/out/logs'
6564
artifact: 'Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
6665
- ${{ else }}:
6766
- task: PublishPipelineArtifact@1
68-
condition: eq(variables['isIntegration'], 'true')
67+
condition: ${{ eq(parameters.isIntegration, 'true') }}
6968
displayName: 'Upload integration test logs'
7069
inputs:
7170
targetPath: '$(Build.SourcesDirectory)/out/logs'

0 commit comments

Comments
 (0)