I cant run my calabash-ios successfully on Jenkins. complaining of Ruby.Framework

33 views
Skip to first unread message

seun are

unread,
Mar 5, 2015, 6:08:07 AM3/5/15
to jenkins...@googlegroups.com
Hi,

Please i am new here and i am happy to discover this forum.

I need help. here is my configuration:
Jenkins version: 1.600
XCode version: 6
Calabash version: 0.13.
OS: 10.10
iOS version: 8.0

here is the error from Jenkins Console log:

rvm rubies

   ruby-2.1.1 [ x86_64 ]
=* ruby-2.2.0 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

/Users/Shared/Jenkins/Home/jobs/App.iOS.Calabash.Test/workspace
Choose scheme name and update it in SCHEME_XC
click manage scheme and choose scheme name and find the build configuration BUILD_CONFIG
if your features(automation test features) are present in different folder rather than folder where project is present , mention the path in FEATURES_PATH
or else remove the argument.
APPNAME - name of the application usually same as the scheme name
PROJ_LOC - location of xcode project if thats same as current folder remove this option.
DEVICE_TARGET=iPhone 6 (8.1 Simulator) APP_BUNDLE_PATH=/Users/xxxx/Jenkins-Test/workspace/iOS-Youview-cal/build/XXXX.app bundle exec cucumber -p ios --tag @test1
/Users/Shared/Jenkins/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/definition.rb:380:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 2.2.0 (Bundler::RubyVersionMismatch)
	from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler.rb:118:in `setup'
	from /Users/Shared/Jenkins/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/setup.rb:18:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Build step 'Execute shell' marked build as failure
Finished: FAILURE


As you can see, i have ruby-2.2.0 as default and i have it up to date but i dont know where this "Your Ruby version is 2.0.0, but your Gemfile specified 2.2.0" is coming from. i only have ruby-2.1.1 and ruby-2.2.0 i cant understand where the 2.0.0 is coming from please can someone suggest to me how to get the Ruby.Framework updated? or any suggestion ?

Thanks

Johnson

Daniel Beck

unread,
Mar 5, 2015, 6:18:37 AM3/5/15
to jenkins...@googlegroups.com
Try updating to Jenkins 1.601.
> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7765aca6-6f2d-4e3d-9dc1-400eabe1b78d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

seun are

unread,
Mar 5, 2015, 2:00:32 PM3/5/15
to jenkins...@googlegroups.com, m...@beckweb.net
I have Jenkins 1.601 now and the error still shows. Please help

Björn Pedersen

unread,
Mar 6, 2015, 3:38:57 AM3/6/15
to jenkins...@googlegroups.com
Hi,

my guess is that your rvm setup is not correctly loaded when jenkins  logs onto your node. Make sure to:
a) configure rvm in the right shell (usally /bin/sh for jenkins)
b) ensure that the configuration is loaded in non-interactive shells
bash e.g. loads /etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile for interactive shells,
but these are not read for non-interactive shells (see man bash for more details)

Björn



seun are

unread,
Mar 6, 2015, 9:23:25 AM3/6/15
to jenkins...@googlegroups.com
Thanks for your help but can you help me give guidelines on how i will implement your suggested steps please i am new to these pleas help. thanks
Reply all
Reply to author
Forward
0 new messages