Jenkins problem configuration

When I run the ruby ​​script as a build task, this is the error I am getting. I'm not sure what is wrong with the installation.

my RUBY_HOME "/home/bitnami/.rvm/rubies/ruby-1.9.3-p374"

      

Any ideas?

Started by user User Name
Building in workspace /opt/bitnami/apps/jenkins/jenkins_home/workspace/Test
[Test] $ ruby -v /opt/bitnami/apache-tomcat/temp/hudson7369076924945073821.rb
FATAL: command execution failed
java.io.IOException: Cannot run program "ruby" (in directory    "/opt/bitnami/apps/jenkins/jenkins_home/workspace/Test"): error=2, No such file or directory

      

+3


source to share


1 answer


To use ruby ​​RVM in Jenkins jobs, you need to specify rvm in build steps, e.g. / path / to / rvm / scripts / rvm. Then you need to set which ruby ​​to use using rvm. I am using it without error.



0


source







All Articles