Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTS build with multiple repos

My team uses VSTS for CI/CD of a web project. In order to keep our code separated, we use two separate repositories for front-end and back-end.

Two questions are raised by this:

  1. How do I set up a build that merges the build artifacts from the two repositories into a single release?
  2. How do I trigger this single build/release process from each repository separately?
like image 534
dalgard Avatar asked Jul 01 '16 09:07

dalgard


1 Answers

First step is to create a CI build for both repositories. Once you have them compiling and generating the necessary artifacts, you need to create a single CD release. At the top of the editor, there is an Artifacts tab.

Artifacts Tab

Once there, you can link multiple builds or release to it. Simply click the Link an artifact source and add your two CI builds.

Artifacts Tab Contents

Next, move to the Triggers tab. Here you can add triggers for a successful completion from any or all of the CI builds.

enter image description here

When you add a task to your release and need to access an artifact, it will give you an option to use a Linked Artifact or a URL Artifact. Select the Linked Artifact and then click the three dot browse button for the artifact path. You will get a screen like the one below allowing you to locate the linked artifact between your two builds.

enter image description here

like image 171
tj-cappelletti Avatar answered Oct 09 '22 00:10

tj-cappelletti