I had problem in capistrano installation : if I connect to the server from root and then switch to jenkins user ( su jenkins ) and I run this command (cap ) capistrano work just fin , but if I connect directly to jenkins user capistrano never work even when I already installed .
Asked
Active
Viewed 106 times
2 Answers
0
First check your capistrano installation location and Jenkins pointing location are same or not, seems to be Jenkins user is not having permission to run the capistrano, When you are running without Jenkins you are giving su Jenkins command to switch the user, try without su command, if it is not running as expected you can consider it is a permission issue , then add Jenkins user into same admin group. then it will work.

Kamal Gadepalli
- 177
- 1
- 1
- 11
0
Although su
switches user, by default su
doesn't set its environment variables. To do so execute su -
.
From your description it sounds that some root
/jenkins
variables might be the problem.
Try running su - jenkins
. If this won't work, that would at least confirm issue.

luka5z
- 7,525
- 6
- 29
- 52