Skip to content

Commit 927c7d8

Browse files
authored
Use it as a variable
1 parent a4465f0 commit 927c7d8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

azure-pipelines/test.yml

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

14+
variables:
15+
isIntegration: ${{ parameters.isIntegration }}
16+
1417
steps:
1518
- checkout: self
1619
clean: true
@@ -51,18 +54,18 @@ steps:
5154
echo "Temp Path: $tempPath"
5255
Get-ChildItem -Path $tempPath -Filter *.cpuprofile | Copy-Item -Destination "$(Build.SourcesDirectory)/out/logs"
5356
displayName: 'Copy .cpuprofile files to out/logs'
54-
condition: ${{ eq(parameters.isIntegration, 'true') }}
57+
condition: eq(variables['isIntegration'], 'true')
5558

5659
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
5760
- task: 1ES.PublishPipelineArtifact@1
58-
condition: ${{ eq(parameters.isIntegration, 'true') }}
61+
condition: eq(variables['isIntegration'], 'true')
5962
displayName: 'Upload integration test logs'
6063
inputs:
6164
path: '$(Build.SourcesDirectory)/out/logs'
6265
artifact: 'Test Logs ($(System.StageDisplayName)-$(Agent.JobName)-$(System.JobAttempt))'
6366
- ${{ else }}:
6467
- task: PublishPipelineArtifact@1
65-
condition: ${{ eq(parameters.isIntegration, 'true') }}
68+
condition: eq(variables['isIntegration'], 'true')
6669
displayName: 'Upload integration test logs'
6770
inputs:
6871
targetPath: '$(Build.SourcesDirectory)/out/logs'

0 commit comments

Comments
 (0)