Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On ubuntu 10.0.4
Did sudo su
Then installed eclipse in /root/eclipse (only wget and unzip, no apt-get)
Then installed android sdk in /root/android-sdk-linux_x86 (only wget and unzip, no apt-get)
Run with gksudo /root/eclipse/eclipse &
No issues. Development working fine.

Then installed jenkins in /var/lib/jenkins (using apt-get)

Issue:
Now when I use jenkins "Execute shell" option and call shell scripts,
I get permissions issues like for example:
/root/android-sdk-linux_x86/tools/android: Permission denied
Cannot find /root/android-sdk-linux_x86/tools/ant/pre_setup.xml

How do I configure users and groups in this kind of scenario,
so that I can run scripts from jenkins (running as the jenkins user) ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

install everything into jenkins's home directory instead of root.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.