简体   繁体   English

如何在CentOS(Linux)上安装vNext构建代理?

[英]How to install vNext build agent on CentOS (Linux)?

Ive been trying to use Visual Studio Online's new build definitions with linux. 我一直试图在Linux上使用Visual Studio Online的新构建定义。 I set up an Azure VM running CentOS 7.1 installed Nodejs (v0.10.36) and npm (v3.3.9) the prerequisites for the vNext build agent. 我设置了运行CentOS 7.1,安装了Nodejs(v0.10.36)和npm(v3.3.9)的Azure VM,这是vNext构建代理的先决条件。

when running the vsoagent.js file to set up the agent and filling in the fields, i am able to connect to my VSO account successfully but the build agent doesnt start. 当运行vsoagent.js文件设置代理并填写字段时,我能够成功连接到我的VSO帐户,但是构建代理无法启动。

following is the console output i get: 以下是我得到的控制台输出:

Console output 控制台输出

Im getting a bad request (400) error, why is this occuring and how do i fix it? 我收到一个错误的请求(400)错误,为什么会发生这种情况,我该如何解决?

You need to set some permissions before you can add and run a new agent. 您需要先设置一些权限,然后才能添加和运行新代理。 First, you need to enable alternate credentials for your account. 首先,您需要为您的帐户启用备用凭据。 Log in to VSO using your account and open your profile settings. 使用您的帐户登录到VSO,然后打开您的个人资料设置。

Then, go to the “Credentials” tab and enable your alternate credentials there. 然后,转到“凭据”选项卡,并在此处启用备用凭据。

After that, go back to the “Agent pools” administration page, go to Roles tab, there are two security groups there. 之后,返回到“代理池”管理页面,转到“角色”选项卡,那里有两个安全组。 You'll need to add your account to both. 您需要将两者都添加到您的帐户。

•Agent Pool Administrators: allows adding agent to pool •代理池管理员:允许将代理添加到池中

•Agent Pool Service Accounts: allows the agent to listen to the build queue •代理程序池服务帐户:允许代理程序侦听构建队列

When you create the server, you'll need to login using the credentials you provided when creating the virtual machine. 创建服务器时,需要使用创建虚拟机时提供的凭据登录。 More steps of creating a Build.vNext agent on Linux, please check http://realalm.com/2015/06/26/creating-a-build-vnext-agent-on-linux/ 在Linux上创建Build.vNext代理的更多步骤,请查看http://realalm.com/2015/06/26/creating-a-build-vnext-agent-on-linux/

From the screenshot you provided, you got bad request with the URL. 在您提供的屏幕截图中,您对URL的要求不正确。 在此处输入图片说明

And the server URL you need to provide should be something like: https://servername.visualstudio.com 您需要提供的服务器URL应该类似于: https : //servername.visualstudio.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM