加载配置文件失败

时间:2016-09-08 18:12:51

标签: jenkins continuous-integration protractor

使用Git源从Jenkins运行构建时出错。这个配置文件虽然从本地终端正常工作。有人可以帮忙吗?

[13:07:10] Using gulpfile ~/.jenkins/workspace/Demo/gulpfile.js
[13:07:10] Starting 'test'...
[13:07:10] Testing sites/sitename
[13:07:10] E/configParser - error code: 105
[13:07:10] E/configParser - description: failed loading configuration file ./sites/sitename/protractor.conf.js

/Users/akuchhal/.jenkins/workspace/Demo/node_modules/protractor/built/configParser.js:130
            throw new exitCodes_1.ConfigError(logger, 'failed loading configuration file ' + filename);

这就是我在Jenkins shell命令中所拥有的:

npm install;
node_modules/.bin/gulp test --site sitename --suite smoke;

1 个答案:

答案 0 :(得分:1)

我解决了这个问题。我没有在我的GIT存储库中包含node_modules目录。