While creating a pipeline for a project it depends on another project that's located in a different Azure DevOps collection and even though Azure Pipelines lets you download artifacts from the collection the project belongs to, I couldn't find the same solution for the projects outside of the current collection.
Azure structure:
- CollectionOne
- ProjectOne
- ProjectTwo
- CollectionTwo
- ProjectThree
- ProjectFour
The ProjectOne
, depends on the dll
files produced by the ProjectFour
.
How can this be done?
edit 1:
This is my nuget
pipeline item.
CodePudding user response:
When ProjectOne is the main project and you want to use ProjectFour as something like a libary. You could try to run pipelines for the ProjectFour updates then upload the files into the Azure Artifact
Then you could use the Artifacts in other collections by setting corresponding service connection.
Here take nuget package as the uploaded Artifact as an example: You could use 'nuget' task in pipelines, choose to use feeds in my config.
You could need to use 'nuget' service connection to communicate with the feeds outside the collection
If you don't have one, you could click add new in the third screenshot to create one for using
Choose 'External Azure DevOps Server' here and fill the following blanks.
Then you are supposed to be able use the nuget files in the other collection's artifact.