TFS 2017 Linux Build Agent [英] TFS 2017 Linux Build Agent

查看:102
本文介绍了TFS 2017 Linux Build Agent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个内部部署的TFS 2017.  Windows构建代理已安装并正常运行。  尝试安装一个没有运气的Linux构建服务器。


  1. 安装Ubuntu 16.05 64位。
  2. 每个安装的先决条件:https://github.com/Microsoft/vsts-agent/blob/master/docs/start/envubuntu.md
  3. 运行./config.sh

我被提示输入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.

  1. Installed Ubuntu 16.05 64-bit.
  2. Installed prereqs per https://github.com/Microsoft/vsts-agent/blob/master/docs/start/envubuntu.md
  3. Run ./config.sh

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆