发布定义中的多个回购
Multiple Repos in Release definition
我有多个存储库连接到 CD,以数据形式向其提供输入
Current picture of CD
问题是每当任何存储库(Repo1 或 Repo2 或 Repo3)中有任何数据更新时,都会从所有连接的存储库下载数据,这会花费大量时间。
但是,我希望只下载更改的文件。这可能吗?
不,我认为现在使用 Azure DevOps 是不可能的,它不会存储 "cache" 你的存储库,所以它总是会重新下载它们。
居然还有神器。它能够做到这一点。
- Option 1: use PowerShell task to download the updated files in the latest commit
You can remove the git repo from the "Artifacts" section on the
release pipeline and get the repository in another way, such as
powershell or cmd task. Use that kind of task to pull the changes
from the git repository.
- Option 2: only download the latest commit from git repo
You can also specify the shallow fetch depth as 1, then the down
artifact step will only download the latest commit. And it will reduce
the artifact size sharply.
更多细节请参考Marina Liu在这个问题中的回复:
我有多个存储库连接到 CD,以数据形式向其提供输入
Current picture of CD
问题是每当任何存储库(Repo1 或 Repo2 或 Repo3)中有任何数据更新时,都会从所有连接的存储库下载数据,这会花费大量时间。
但是,我希望只下载更改的文件。这可能吗?
不,我认为现在使用 Azure DevOps 是不可能的,它不会存储 "cache" 你的存储库,所以它总是会重新下载它们。
居然还有神器。它能够做到这一点。
- Option 1: use PowerShell task to download the updated files in the latest commit
You can remove the git repo from the "Artifacts" section on the release pipeline and get the repository in another way, such as powershell or cmd task. Use that kind of task to pull the changes from the git repository.
- Option 2: only download the latest commit from git repo
You can also specify the shallow fetch depth as 1, then the down artifact step will only download the latest commit. And it will reduce the artifact size sharply.
更多细节请参考Marina Liu在这个问题中的回复: