Jenkins and Ruby commands - fail to execute via SSH (non interactive shell problem)

2013-08-29 Thread Avihay Eyal
Hi, I have a job trying to call some Ruby commands, like bundle, rake, etc.. The problem is, that when I'm trying to execute these commands via the Execute Shell, I receive an *error saying bundle: not found.* When I'm opening a shell of my own, this commands work, so it might be related to

Re: Jenkins and Ruby commands - fail to execute via SSH (non interactive shell problem)

2013-08-29 Thread Chanda Unmack
When you open a shell of your own, are you logged into the same machine and as the same user as Jenkins is running? It could be the environment variables that are set for your user aren't the same as the Jenkins user. I know we source the .bash_profile before running any ruby commands, but that's

Re: Jenkins and Ruby commands - fail to execute via SSH (non interactive shell problem)

2013-08-29 Thread Avihay Eyal
Hi, I solved it via calling to #!/bin/bash, and after that calling to few ruby initialize function (rvm, and something else I can't remember now...). That did the trick...Thanks anyway :) On Thursday, August 29, 2013 8:18:09 PM UTC+3, Chanda Unmack wrote: When you open a shell of your own,