2015-02-09 133 views
1

我正在使用TeamCity作为我的CI服务器(mac)。我正在尝试构建Web项目。当我将grunt servegrunt buildproduction更改为克隆文件夹后,它工作得很好。但是当我通过TeamCity服务器执行此操作时,它提供了一个错误You need to have Ruby and Compass installed and in your system PATH for this task to work并因警告而中止。 Ruby和Compass已经安装在server.Please帮助我这一点。无法在TeamCity中构建Web项目

rm -rf $(pwd)/node_modules/* 
rm -rf $(pwd)/bower_components/* 
npm cache clear 
npm install 
npm install bower 
npm install grunt-ftp-push --save-dev 
bower install 
grunt buildproduction 

这是命令行buildstep我在TeamCity的使用..

+0

您的代理程序是否与服务器安装在同一台计算机上? – 2015-02-10 17:25:33

+0

是的......当我重新启动我的服务器时,问题得到解决..感谢您花费宝贵的时间。 – 2015-02-11 06:37:14

回答

1

我会说,你可能会使用,当你运行这些不同的用户或shell环境是不同的(交互与非交互式)命令,当它通过TC运行时,它无法在环境中找到这些软件包/路径

+1

感谢Viktor Benei ..考虑你的建议,我重新启动了我的服务器。现在TeamCIty正在为我建造这个项目......感谢您宝贵的时间.. – 2015-02-11 06:33:58

+0

@Nevin Raj我很高兴我能帮上忙:) – 2015-02-11 06:50:21