简体   繁体   English

如何找到正确的托管代理来构建Linux代码?

[英]How to find correct hosted agent to build Linux code?

I am learning VSTS. 我正在学习VSTS。 I have a one-line HelloWorld.cpp file in my repository and a makefile to build this cpp file. 我的存储库中有一个单行的HelloWorld.cpp文件,还有一个生成该cpp文件的makefile。

Firstly, I created my build definition, which is like below: 首先,我创建了我的构建定义,如下所示: 在此处输入图片说明

secondly, I assigned the build definition to the only available Linux hosted-agent, called "Hosted Linux (Preview)": 其次,我将构建定义分配给唯一可用的Linux托管代理,称为“ Hosted Linux(Preview)”: 在此处输入图片说明

After these I kicked off a build but it returns error: 在这些之后,我开始构建,但是它返回错误: 在此处输入图片说明

I then checked the capabilities of the agent. 然后,我检查了代理的功能。 It doesn't have CMake, nor does it have compiler like gcc or clang. 它没有CMake,也没有像gcc或clang这样的编译器。 在此处输入图片说明

I checked VSTS documentation pages about build agents, but have no clue what I should do. 我查看了有关构建代理程序的VSTS文档页面,但不知道应该怎么做。

The Hosted agent and Hosted VS2017 agent have CMake installed, you can use Hosted agent or Hosted VS2017 agent. 托管代理和托管VS2017代理已安装CMake,可以使用托管代理或托管VS2017代理。 You need to add the capability manually (cmake and yes), check Build:CMake Q&A . 您需要手动添加功能(cmake和yes),请检查Build:CMake Q&A

On the other hand, regarding CMake in Hosted Linux agent, I submit a feedback here: CMake in Hosted Linux agent . 另一方面,关于托管Linux代理中的CMake,我在此处提交反馈: 托管Linux代理中的CMake

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

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