basically my problem boils down to How do I get the jenkins user to see rake which is located in:/usr/local/bin/rake
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 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/92a28333-a3e7-42ad-93bb-4c8e921d2f8e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
