Here’s my problem : i’m currently creating an ionic app on android and iOS. I’ve recently decided to build my app with Jenkins. To build the app for iOS, i’ve set a mac slave, on which their’s a workspace for Jenkins.
All the compiling environnement is set up with maven.
I’ve succeeded mutliple time to build the app on the Jenkins workspace with the command “ionic cordova build ios --prod --release”
When Jenkins launch a build, it also run “ionic cordova build ios --prod --release”, but failed every time with this exception :
"[09:45:14] lint started ... [09:45:14] build prod finished in 183.40 s > cordova build ios --release path.js:28 throw new TypeError('Path must be a string. Received ' + inspect(path)); ^ TypeError: Path must be a string. Received undefined at assertPath (path.js:28:11) at Object.join (path.js:1251:7) at Object.<anonymous> (/Users/jenkinsnode/workspace/fe-trophy-app-front_develop-77CK5GUSIH5UUBVXYPQ7OXP6XA6JO4UMRJFKHDTFH7JX3ORNETWA/node_modules/cordova-lib/src/cordova/util.js:36:31) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18)"
I have no idea why this exception is thrown, i thought about an user permission problem, but everything is ok. Working environnement is always well initialized…
Does anyone ever faced (and resolved) this problem?