我对詹金斯很陌生。我创建了我的第一个Jenkins自由样式任务,以编译c ++代码。
名为hello_jenkin.cpp的C ++文件
#include <iostream>
int main() {
std::cout << " hello from hao computer" << std::endl;
return 0;
}
在jenkins BUILD中,我从“从shell执行”中选择build,然后运行
g++ hello.cpp -o hello_jenkins
./hello_jenkins
我收到错误消息“ g ++:找不到”。我想我需要将gcc安装到Jenkins。嗯,我在jenkin插件中搜索了gcc,但是没有找到类似的东西。有人知道吗?