adb: No such file or directory

786 views
Skip to first unread message

zenox paradox

unread,
Apr 15, 2013, 8:26:57 AM4/15/13
to jenkins...@googlegroups.com
My setup is as follows;

Jenkins on Max OS X (10.7.5) and running Jenkins (ver. 1.504)
Logged in as user, having a project that has an Android project workspace.
What I would like to have is an automated build process that tests some basic functionality using something called Calabash.

In the (user) terminal i can succesfully run the command without any problems.

However running the same command in "Execute Shell" it gives me the following output:

sh: ~/sdk/platform-tools/adb: No such file or directory
sh: ~/sdk/platform-tools/adb: No such file or directory
sh: ~/sdk/platform-tools/adb: No such file or directory
sh: ~/sdk/platform-tools/adb: No such file or directory
sh: ~/sdk/platform-tools/adb: No such file or directory

What I tried so far are the following things:

Added the tools and platform tools to the path by adding them in the bash_profile file, by adding them in bashrc file and by adding them the help of a plugin called EnvInject (ver 1.83).

EnvInject even enables me to see the used enviroment variables that have been used during a build. It shows succesfully

PATH/usr/bin:/bin:/usr/sbin:/sbin:/Users/Shared/Jenkins/sdk/platform-tools:/Users/Shared/Jenkins/sdk/tools

Or (what i also tried)

PATH/usr/bin:/bin:/usr/sbin:/sbin:~/sdk/platform-tools:~/sdk/tools


I have looked everywhere, and it feels like I tried everything to make this work, yet nothing seems to work properly. Please Advice.








B.Latinville

unread,
Apr 15, 2013, 12:18:25 PM4/15/13
to jenkins...@googlegroups.com
I had some problems sometime with  ~ .

Your problem could come from the ~ in you command line.

try to replace the ~ with the abolute path in the executed command.

/Users/<login>/sdk/platform-tools/adb



Bertrand.
Reply all
Reply to author
Forward
0 new messages