Skip to content

Commit 1c1a582

Browse files
BAU-14135: Make python version configurable in build
BAU-14135: Make python version configurable in build
2 parents 46b6769 + c457b09 commit 1c1a582

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

azure/common/apigee-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ parameters:
2727
- name: cache_steps
2828
type: stepList
2929
default: []
30+
- name: python_version
31+
type: string
32+
default: "3.8"
3033

3134
jobs:
3235
- job: build
@@ -138,9 +141,9 @@ jobs:
138141
service_name: "${{ parameters.service_name }}"
139142

140143
- task: UsePythonVersion@0
141-
displayName: "Use Python 3.8"
144+
displayName: "Use Python ${{ parameters.python_version }}"
142145
inputs:
143-
versionSpec: "3.8"
146+
versionSpec: ${{ parameters.python_version }}
144147

145148
- ${{ each cache_step in parameters.cache_steps }}:
146149
- ${{ cache_step }}

0 commit comments

Comments
 (0)