ok solved looking in the Jenkins config area I was able to find what it thought the $PATH was and I inserted a link to rake there
http://10.80.84.40:8080/systemInfo On Tuesday, June 7, 2016 at 4:30:32 PM UTC-6, ziffification wrote: > > > I have rake running as default OS version of ruby > > > > > Building in workspace /var/lib/jenkins/workspace/test2 > [test2] $ rake --rakefile /var/lib/jenkins/workspace/test2/Rakefile features > FATAL: rake execution failedjava.io.IOException > <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Cannot > run program "rake" (in directory "/var/lib/jenkins/workspace/test2"): > error=2, No such file or directory > > > if I run rake from the command line as myself it all works: > > [robm@pp000c2929b742 test2]$ rake --rakefile > /var/lib/jenkins/workspace/test2/Rakefile features > /usr/bin/ruby -I "lib" > "/usr/local/share/gems/gems/cucumber-2.3.3/bin/cucumber" --format json > features/testEbiSingle.feature > /var/lib/jenkins/workspace/test2/report.json > [robm@pp000c2929b742 test2]$ > > > > this is the only build step I have , also I made sure the jenkins user had > bas as the shel and .bashrc had /usr/bin added (where rake is) > jenkins:x:985:979:Jenkins Continuous Integration > Server:/var/lib/jenkins:/bin/bash > > > [robm@pp000c2929b742 test2]$ cat /var/lib/jenkins/.bashrc > export PATH="$PATH:$HOME/.rvm/bin:/usr/local/bin" # Add RVM to PATH for > scripting > > > > > > > <https://lh3.googleusercontent.com/-1CyOmwZhd2A/V1dKQ6y4-2I/AAAAAAAAAGA/bzNYWIVlApALX0W2cKrT76oDHxtd4qQXgCLcB/s1600/rakeERR.PNG> > > > > > any ideas on how to get this working? > > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4b483af2-7d90-41a1-bf2c-d443ba3dc0aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
