Skip to content

Commit c75311a

Browse files
authored
Allow parameterization of python version during analyze (#43888)
* allow naive parameterization of analyze python version * change formatting to coalesce
1 parent 90a9226 commit c75311a

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

eng/pipelines/templates/jobs/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ parameters:
6464
- name: EnvVars
6565
type: object
6666
default: {}
67+
- name: PythonVersionForAnalyze
68+
type: string
69+
default: ''
6770

6871
jobs:
6972
- job: 'Build_Linux'
@@ -217,11 +220,10 @@ jobs:
217220

218221
steps:
219222
- task: UsePythonVersion@0
220-
displayName: 'Use Python $(PythonVersion)'
223+
displayName: "Use Python ${{ coalesce(parameters.PythonVersionForAnalyze, '$(PythonVersion)') }}"
221224
condition: succeededOrFailed()
222225
inputs:
223-
versionSpec: '$(PythonVersion)'
224-
226+
versionSpec: ${{ coalesce(parameters.PythonVersionForAnalyze, '$(PythonVersion)') }}
225227
- template: /eng/pipelines/templates/steps/use-venv.yml
226228

227229
- template: /eng/common/pipelines/templates/steps/check-spelling.yml

eng/pipelines/templates/stages/archetype-sdk-client.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ parameters:
8484
- name: EnvVars
8585
type: object
8686
default: {}
87+
- name: PythonVersionForAnalyze
88+
type: string
89+
default: ''
8790

8891
extends:
8992
template: /eng/pipelines/templates/stages/1es-redirect.yml
@@ -120,6 +123,7 @@ extends:
120123
VerifyAutorest: ${{ parameters.VerifyAutorest }}
121124
TestProxy: ${{ parameters.TestProxy }}
122125
GenerateApiReviewForManualOnly: ${{ parameters.GenerateApiReviewForManualOnly }}
126+
PythonVersionForAnalyze: ${{ parameters.PythonVersionForAnalyze }}
123127

124128
variables:
125129
- template: /eng/pipelines/templates/variables/globals.yml

sdk/agentserver/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ extends:
3232
TestProxy: true
3333
BuildDocs: true
3434
TestTimeoutInMinutes: 60
35+
PythonVersionForAnalyze: '3.10'
3536
# The job "Test ubuntu2404_pypy39" in the "python - agentserver" pipeline hangs and eventually times out.
3637
# Disable it until the issue is understood.
3738
MatrixConfigs:

0 commit comments

Comments
 (0)