Warm tip: This article is reproduced from stackoverflow.com, please click
azure azure-devops azure-pipelines build continuous-integration

Can you change the location of azure-pipelines.yaml in Azure Devops?

发布于 2020-04-11 22:40:07

Is it possible to configure an Azure DevOps pipeline to look for the azure-pipelines.yaml file in a custom location?

We're using a mono-repo source control architecture for our current work with different packages held under packages/<package-name> and only one of them needs an Azure DevOps pipeline, so ideally we'd like to have the YAML configuration stored with the package rather than at the root of the repo, but I can't find any options for this in the DevOps portal. This is definitely configurable in other similar services like AWS CodeBuild.

Questioner
Henry Wilson
Viewed
79
4c74356b41 2019-04-10 23:48

yes you can do that, when creating the build use old UI wizard, if you already have a build in place, you can open its settings>variables (or triggers) and then navigate to the YAML section and under YAML file path you can change it

click the ... on the build edit page next to the Run button:

enter image description here