Add parameter indirection and default value.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/python
-jobs:
+parameters:
+ vmImage: ''
+jobs:
- job: 'Test'
strategy:
matrix:
Python27 Windows:
python.version: '2.7'
- vmImage: 'vs2017-win2016'
+ parameters.vmImage: 'vs2017-win2016'
Python36 Windows:
python.version: '3.6'
- vmImage: 'vs2017-win2016'
+ parameters.vmImage: 'vs2017-win2016'
Python37 Windows:
python.version: '3.7'
- vmImage: 'vs2017-win2016'
+ parameters.vmImage: 'vs2017-win2016'
Python27 macOS:
python.version: '2.7'
- vmImage: 'xcode9-macos10.13'
+ parameters.vmImage: 'xcode9-macos10.13'
Python36 macOS:
python.version: '3.6'
- vmImage: 'xcode9-macos10.13'
+ parameters.vmImage: 'xcode9-macos10.13'
Python37 macOS:
python.version: '3.7'
- vmImage: 'xcode9-macos10.13'
+ parameters.vmImage: 'xcode9-macos10.13'
maxParallel: 6
pool:
- vmImage: ${{ vmImage }}
+ vmImage: ${{ parameters.vmImage }}
steps:
- task: UsePythonVersion@0
