We have example in this page:
jobs:
poolparameters:
jobs:
But how to map demands with pool object?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@VerdonTrigance -- thank you for your question. You may find answers here:
Azure DevOps on Stack Overflow
@juliakm -- please look into this potential documentation issue.
May I pass template to another template's parameter?
steps:
parameters:
stages:
How to do this?
We have example in this page:
azure-pipelines.yml
jobs:
- template: process.yml
parameters:
pool: # this parameter is calledpool
vmImage: ubuntu-latest # and it's a mapping rather than a stringprocess.yml
parameters:
- name: 'pool'
type: object
default: {}jobs:
- job: build
pool: ${{ parameters.pool }}But how to map demands with pool object?
```yaml
- template: process.yml
parameters:
pool:
demands:
- myCustomCapability
vmImage: ubuntu-latest
May I pass template to another template's parameter?
steps.yml
steps:
- powershell: |
write-host "do specific stuff here"tmplt-stage-deploy2dev.yml
parameters:
- name: stagename
- name: wspsteps
type: stepList
stages: #some general stuff hereazure-pipelines.yml
stages:
- template: ..\tmplt-stage-deploy2dev.yml
parameters:
stagename: Deploy2Dev
wspsteps: #how to pass first template hereHow to do this?
```yaml
stages:
This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.