{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/ios-deploy/issues/220","repository_url":"https://api.github.com/repos/phonegap/ios-deploy","labels_url":"https://api.github.com/repos/phonegap/ios-deploy/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/ios-deploy/issues/220/comments","events_url":"https://api.github.com/repos/phonegap/ios-deploy/issues/220/events","html_url":"https://github.com/phonegap/ios-deploy/issues/220","id":146084416,"number":220,"title":"ios-deploy command not found when ran from jenkins","user":{"login":"saratchandrakarumuri","id":8692125,"avatar_url":"https://avatars.githubusercontent.com/u/8692125?v=3","gravatar_id":"","url":"https://api.github.com/users/saratchandrakarumuri","html_url":"https://github.com/saratchandrakarumuri","followers_url":"https://api.github.com/users/saratchandrakarumuri/followers","following_url":"https://api.github.com/users/saratchandrakarumuri/following{/other_user}","gists_url":"https://api.github.com/users/saratchandrakarumuri/gists{/gist_id}","starred_url":"https://api.github.com/users/saratchandrakarumuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saratchandrakarumuri/subscriptions","organizations_url":"https://api.github.com/users/saratchandrakarumuri/orgs","repos_url":"https://api.github.com/users/saratchandrakarumuri/repos","events_url":"https://api.github.com/users/saratchandrakarumuri/events{/privacy}","received_events_url":"https://api.github.com/users/saratchandrakarumuri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T19:17:35Z","updated_at":"2016-04-05T19:23:10Z","closed_at":null,"body":"When running the command \r\n\r\nios-deploy -L -b application.app\r\n\r\nusing the execute shell build step from jenkins, getting the following error\r\n\r\nios-deploy: command not found\r\n\r\nThe same command is working when executed through the terminal manually\r\n\r\n# Expected behavior\r\nShould deploy and launch app on the device\r\n\r\n# Actual behavior.\r\nBuild is marked as failed with the message \r\n\r\nios-deploy: command not found\r\n\r\n# Steps to reproduce the problem\r\nCreate a project in jenkins with the \"execute shell\" build step. Use the command\r\n\r\nios-deploy -L -b application.app\r\n\r\nCreate a build\r\n\r\n# System Specs\r\n\r\nPlease run the commands below in your Terminal.app and include it in the issue. Check when done and include results below.\r\n\r\n- [ ] 1. sw_vers -productVersion : 10.11.2\r\n- [ ] 2. ios-deploy -V : 1.8.5\r\n- [ ] 3. xcodebuild -version : xcode 7.3 Build version 7D175\r\n- [ ] 4. xcode-select --print-path : /Applications/Xcode.app/Contents/Developer\r\n- [ ] 5. gcc --version : Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1\r\nApple LLVM version 7.3.0 (clang-703.0.29)\r\nTarget: x86_64-apple-darwin15.2.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n- [ ] 6. lldb --version : lldb-350.0.21.3\r\n\r\nI am not sure whether this might help, but here's the log for the command\r\nnpm install && npm test\r\n\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/Cellar/node/5.9.1/bin/node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'test' ]\r\n2 info using npm@3.7.3\r\n3 info using node@v5.9.1\r\n4 verbose config Skipping project config: /Users/sara8187/.npmrc. (matches userconfig)\r\n5 verbose stack Error: ENOENT: no such file or directory, open '/Users/sara8187/package.json'\r\n5 verbose stack     at Error (native)\r\n6 verbose cwd /Users/sara8187\r\n7 error Darwin 15.2.0\r\n8 error argv \"/usr/local/Cellar/node/5.9.1/bin/node\" \"/usr/local/bin/npm\" \"test\"\r\n9 error node v5.9.1\r\n10 error npm  v3.7.3\r\n11 error path /Users/sara8187/package.json\r\n12 error code ENOENT\r\n13 error errno -2\r\n14 error syscall open\r\n15 error enoent ENOENT: no such file or directory, open '/Users/sara8187/package.json'\r\n16 error enoent ENOENT: no such file or directory, open '/Users/sara8187/package.json'\r\n16 error enoent This is most likely not a problem with npm itself\r\n16 error enoent and is related to npm not being able to find a file.\r\n17 verbose exit [ -2, true ]\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/ios-deploy/issues/comments/205956988","html_url":"https://github.com/phonegap/ios-deploy/issues/220#issuecomment-205956988","issue_url":"https://api.github.com/repos/phonegap/ios-deploy/issues/220","id":205956988,"user":{"login":"shazron","id":36107,"avatar_url":"https://avatars.githubusercontent.com/u/36107?v=3","gravatar_id":"","url":"https://api.github.com/users/shazron","html_url":"https://github.com/shazron","followers_url":"https://api.github.com/users/shazron/followers","following_url":"https://api.github.com/users/shazron/following{/other_user}","gists_url":"https://api.github.com/users/shazron/gists{/gist_id}","starred_url":"https://api.github.com/users/shazron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shazron/subscriptions","organizations_url":"https://api.github.com/users/shazron/orgs","repos_url":"https://api.github.com/users/shazron/repos","events_url":"https://api.github.com/users/shazron/events{/privacy}","received_events_url":"https://api.github.com/users/shazron/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T19:23:10Z","updated_at":"2016-04-05T19:23:10Z","body":"This is a problem with pathing in Jenkins, and not an ios-deploy problem. Check your environment."}}