我们有一个内部部署的TFS 2017. Windows构建代理已安装并正常运行。 尝试安装一个没有运气的Linux构建服务器。
我被提示输入URL,身份验证方法,名称和密码。 无论我尝试什么,我都会"无法连接"没有关于问题的有用信息。
我很确定网址是正确的,因为如果我输入了一个伪造的网址,我得到了(也非常无益)"发生了错误发送请求时。"
我尝试过使用和不使用域名的所有用户名组合。 我是TFS服务器管理员。 我不需要成为池管理员,因为我是TFS服务器管理员,但我无论如何都将我的用户名添加为池管理员。 仍然不起作用。
即使说明中指出"您可以在每个TFS应用程序层上使用域用户或本地Windows用户。 ",我根据VS2015说明在TFS服务器上设置了一个本地帐户,我将该帐户添加为池管理员。 这也不起作用。
解决方案
你试试使用个人令牌而不是用户密码 - 请参阅以下文章,了解 在Linux上部署代理
We have an on-premise TFS 2017. Windows build agent installed and working correctly. Trying to install a Linux build server with no luck at all.
I'm prompted for the URL, auth method, name and password. No matter what I try, I get "Failed to connect" with no useful information as to what the problem is.
I'm pretty sure the url is correct because if I enter a bogus url I get (also enormously unhelpful) "An error occurred while sending the request."
I've tried every possible combination of my user name with and without the domain name. I am a TFS server admin. I shouldn't need to be a pool administrator since I'm a TFS server admin, but I add my username as a pool admin anyhow. Still doesn't work.
Even though the instructions say "You can use either a domain user or a local Windows user on each of your TFS application tiers.", I set up a local account on the TFS server per the VS2015 instructions, and I added that account as a pool admin. That doesn't work either.
解决方案you try to use a Personal Token instead of the user password - see the following article for Deploy an agent on Linux
更多推荐
TFS 2017 Linux Build Agent
发布评论