我使用Visual Studio Online从Team Services(是Visual Studio Online)git存储库构建Visual Studio解决方案。构建发生在已在团队服务中注册并发布到团队服务的内部部署构建代理上。标签git版本从构建 - 标签没有在git中找到
在构建定义的“Repository”设置中,我将“Label sources”设置为“On successful build”,并指定了“Label format”。
构建日志显示的版本标签:
Created ref refs/tags/BuildName - SolutionName - Release_1.2.16134.03 at c1fa2a4b9e0f3365e2269bb947af7819faf40354.
而构建的“神器”选项卡上,它显示“build.sourceLabel”,并链接到:
refs/tags/BuildName - SolutionName ...
然而,当我点击超链接,我得到一个TFS错误:
TF401175:The version descriptor <Tag: BuildName - SolutionName - Release_1.2.16134.03 > could not be resolved to a version in the repository RepositoryName
我也不能在本地git中找到任何标记repository:
git pull --tags
git tag
什么也没有显示。
我是否需要任何额外的步骤将我的源标签从构建代理推送到团队服务?在this link顶部的答案似乎表明我所做的是正确的(但我没有使用托管池)。
我的仓库的设置是这样的:
任何人都有这个问题?有什么建议么?
在此先感谢。
我无法重现此问题,您是否可以分享“存储库”选项卡中设置的屏幕截图? –