Might want to use [templates](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops). See [pandas](https://github.com/pandas-dev/pandas/tree/master/ci/azure) for an example.