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:
- How do I set up a build that merges the build artifacts from the two repositories into a single release?
- How do I trigger this single build/release process from each repository separately?
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.
Once there, you can link multiple builds or release to it. Simply click the Link an artifact source
and add your two CI builds.
Next, move to the Triggers
tab. Here you can add triggers for a successful completion from any or all of the CI builds.
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.