continuous integration - Executing Bower in a CI Environment, such as Jenkins -
my jenkins running on centos 6
node.js 0.10.15
, bower 1.0.3
.
i have shell task executes following:
npm install bower install grunt clean package
the bower installation fails when building:
+ bower install path.js:360 throw new typeerror('arguments path.join must strings'); ^ typeerror: arguments path.join must strings @ path.js:360:15 @ array.filter (native) @ object.exports.join (path.js:358:36) @ object.<anonymous> (/usr/lib/node_modules/bower/node_modules/ update-notifier/node_modules/configstore/configstore.js:9:7) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) @ require (module.js:380:17) build step 'execute shell' marked build failure
when i'm executing bower install
in terminal while logged in jenkins user, works. other mentioned commands work expected (npm
, grunt
).
any ideas?
it appears execution environment has neither $xdg_config_home
nor $home
set environment variables.
you can work around manually setting it, example, current workspace:
export xdg_config_home="$workspace/.config" ... bower install
Comments
Post a Comment