Re: Problems running a job with rake

2016-07-14 Thread ziffification
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/AGA/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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Re: Problems running a job with rake

2016-07-14 Thread ziffification
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/AGA/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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Re: Problems running a job with rake

2016-07-14 Thread ziffification
ok here is the problem int that page i have no rake in global tools config

<https://lh3.googleusercontent.com/-QyCSblknQJs/V4fHRxRFKZI/AGo/t_DpyVDNs78kRlh58a3seA8uJzn1duGOwCLcB/s1600/tools.PNG>



so then I go to jenkins>configure system  where I have :

<https://lh3.googleusercontent.com/-nfXH2AEVrWY/V4fHq22oOwI/AGs/axu0iizITfcUeIHeNsi70J0yarsGOIq8ACLcB/s1600/rakeConfig.PNG>



So I am unsure how to configure this? any suggestions?


On Friday, June 10, 2016 at 1:56:57 AM UTC-6, Björn Pedersen wrote:
>
> jenkins -> Manage jenkins -> global tool configuration 
> (or if you have many slaves with different locations,  in node config -> 
> node properties.
>
> Björn
>
>
> Am Donnerstag, 9. Juni 2016 19:32:03 UTC+2 schrieb ziffification:
>>
>> thanks Bjorn!
>>
>> can I ask how I specify the path ?  it looks like in the pull down you 
>> can just select a version of rake 
>>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eb3ffea9-c97a-4ee3-95df-5f1cc3d71995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems running a job with rake

2016-06-09 Thread ziffification
thanks Bjorn!

can I ask how I specify the path ?  it looks like in the pull down you can 
just select a version of rake 

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c85b9194-5d7e-4a92-adb3-7af9a6242ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problems running a job with rake

2016-06-07 Thread ziffification

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 
: 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










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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea9542bd-d3c3-49bc-aa44-1dc734404ae0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


problems running a rake task in jenkins

2016-06-01 Thread ziffification


I am having probelms configuring Rake in Jenkins to run a cucumber test i 
have. I cannot figure out what i should be filling in *tasks* is that just 
a name that you give to the job or is it something from the Rakefile? 










here is my Rakefile 




require 'cucumber/rake/task'

Cucumber::Rake::Task.new :features do |t|
 t.cucumber_opts = '--format json features/testEBI.feature > 
/var/lib/jenkins/workspace/SASEBI\ test/report.json'
end


any suggestions?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f789ec45-1f5a-421b-828a-42bdc70a5756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


running cucumber tests from jenkins

2016-05-27 Thread ziffification

>
> I am running with the cucumber plugin with the following parameters
>
 



and after doing these 2 things


  /var/lib/jenkins/.rvm/bin/rvm @global do gem install bundler
  /var/lib/jenkins/.rvm/bin/rvm  use ruby 1.8.7 && gem install bundler




I still am getting this message:


Started by user rob m 
Building in workspace /var/lib/jenkins/workspace/SASEBI
 [30m [31m [1mstage: [0m [0m [0m  [1m [30m [34mruning cucumber tests [0m [0m [0m
 [30m [31m [1mruby_version: [0m [0m [0m  [1m [30m [34m1.8.7 [0m [0m [0m
 [30m [31m [1mcucumber profile: [0m [0m [0m  [1m [30m [34m [0m [0m [0m
 [30m [31m [1mdirectory: [0m [0m [0m  [1m [30m [34mtestebi [0m [0m [0m
$ bash -c "source /var/lib/jenkins/.rvm/scripts/rvm && cd 
/var/lib/jenkins/workspace/SASEBI/testebi && rvm use ruby 1.8.7 && bundle && 
bundle exec cucumber -p  -c no_proxy=127.0.0.1 browser=chrome DISPLAY=:11 
--color"
Using /var/lib/jenkins/.rvm/gems/ruby-1.8.7-head
bash: bundle: command not found
ERROR:  (Java::Hudson::AbortException)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:423)




indicating that it cannot find bundle ? any idea what i am missing?



-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c614110d-8537-4240-9016-a42c83b7f6e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


cucumber-plugin added build ste[p disappearing

2015-03-06 Thread ziffification


Hi all


I am a novice here and had been using rake to run cucumber jobs , but now I 
have the cucumber-plugin installed. It looks straight forward enough 
however after i fill in the path to cucumber tests and pres apply or save 
(usually I apply then save) the build step disapears?

what am i doing wrong  find attached an image










-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6ee22415-beff-4050-a838-578fb9fcffd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.