VSTS build with multiple repos

自古美人都是妖i 提交于 2020-01-12 07:45:11

问题


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?

回答1:


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.



来源:https://stackoverflow.com/questions/38141337/vsts-build-with-multiple-repos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!