0
votes

We are having multiple projects in Azure devops.

We would like to access the pipelines created across multiple projects.

Is that possible to access pipeline across projects or the pipelines are project specific/restricted?

Thanks

Naresh Ede

2

2 Answers

0
votes

If you use yaml pipelines and rely on multiple repositories which are stored in multi-projects, please refer to this doc: Check out multiple repositories in your pipeline to implement this requirement.

In addition, please disable “Limit job authorization scope to referenced Azure DevOps repositories” option in Project settings page by reference to this doc. Please note that there are also other limitation settings listed here: Job authorization scope.

If you use classic editor pipelines, please specify the authorization scope for a build job as “Project Collection”, see: Build job authorization scope for details. And you need to manually checkout other repositories in pipeline tasks.

0
votes

For YAML Pipelines here is the code you'd need:

resources:
  repositories:
  - repository: repositoryReferenceName
    type: git
    name: ProjectName/RepositoryName

And to reference a template it would be

- template: templateName.yml@repositoryReferenceName