Reputation: 341
I want to call yml script (which will run end to end test) from another yml script in Azure DevOps.Both yml scripts are in different repositories.
I have used queue build task plugin to run but its not able to find the definition.
Can't find the definition name.
Upvotes: 0
Views: 4201
Reputation: 30313
How to call yml script from other yml in azure devops
You can use the resource specification to provide the location of the repo where another yml file is located. When you refer to the another repo, use @ and the name you gave it in resources:
resources:
repositories:
- repository: templates
type: github
name: Contoso/BuildTemplates
jobs:
- template: common.yml@templates # Template reference
You can check the document Job and step templates for some more details.
Hope this helps.
Upvotes: 4