网络外部无法访问 TFS 构建放置位置
我在 TFS Build 2010 RC 上运行了一些构建。构建定义要求放置位置为 UNC 路径或网络共享,因此我使用类似 \\tfs\builds 的内容。我已经公开了端口 8080,因此虽然我不在网络上,但我仍然可以访问它,主要用于源代码控制,但我也检查已完成的构建。然而,构建报告为我提供了 \\tfs\builds 作为放置位置,当我不在网络上时,这对我没有任何好处。
如何在网络之外访问我的构建工件?我可以修改构建模板以指向不同的位置吗?
I have a few builds running on TFS Build 2010 RC. The build definition requires the drop location to be a UNC path or network share so I am using something like \\tfs\builds. I've exposed port 8080 so while I'm not on the network, I can still access it, primarily for source control but I also check the completed builds. However, the build report gives me \\tfs\builds for the drop location, and that doesn't do me any good when I'm not on the network.
How can I access my build artifacts outside the network? Can I modify the build template to point to a different location?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们所做的是修改 TFS 构建的底层 .proj 文件,以将编译后的程序集复制到我们最初在向导中指定的 UNC 共享的不同放置位置。 Team Build 中有一个用于
的内置任务,可以让您准确地执行此操作。不幸的是,正确的位置仍然不会反映在构建报告中,但如果您选择的话,至少应该可以在网络外部访问它,此时这完全取决于您将其复制到的目的地。就我们的目的而言,该目标位置恰好是网络外部可访问的位置。
What we did is modify the underlying .proj file for the TFS build to copy compiled assemblies to a different drop location from the UNC share that we originally specified in the wizard. There's a build-in task in Team Build for
<copy>
that will allow you to do exactly that.Unfortunately, the correct location still won't be reflected in the build report, but at least it should be accessible outside of the network should you so choose, at that point it all depends on the destination you copy it to. For our purposes, that destination location happens to be a location accessible outside of the network.
我能想到的最简单(也是最安全)的方法是与您的工作场所网络建立 VPN 连接。
The easiest (and most secure) way I can come up with off the top of my head would be to establish a VPN connection with your workplace network.