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, 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 mostly for the rvm environment. You could also try exporting the 
> path as the first step in your build step
> export PATH=$PATH:/path/to/bundle
>
> hth
> chanda
>
> On Thu, Aug 29, 2013 at 12:26 AM, Avihay Eyal <[email protected]<javascript:>
> > wrote:
>
>> 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  differences between *interactive and non-interactive shells*, 
>> but I don't
>> know what's the right way to solve it via Jenkins....
>>
>>
>> Thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to