ruby - What's gone wrong with my Capistrano configuration? -


i'm trying execute capistrano deploy via jenkins , running following build error:

  • cd ~/sites/myproject
  • ~/.rvm/gems/ruby-2.0.0-p0/bin/cap production deploy

/system/library/frameworks/ruby.framework/versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in 'report_activate_error': not find rubygem capistrano (>= 0) (gem::loaderror)

from /system/library/frameworks/ruby.framework/versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in 'activate'

from /system/library/frameworks/ruby.framework/versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in 'gem'

from ~/.rvm/gems/ruby-2.0.0-p0/bin/cap:22

from ~/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14

build step 'execute shell' marked build failure

there's suspicious-looking switch ruby 2.0 ruby 1.8 there don't know enough ruby know start looking... ideas?

cap production deploy works fine command line of course.

i able jenkins work correct version of ruby adding following "execute shell command" instructions:

#!/usr/bin/env bash  cd ~/sites/myproject source $(rvm env 2.0.0 --path) cap production deploy 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -