I’m trying to build my android project using fastlane and buildkite. As my build machine is running on Mac OS Mojave, I have installed rbenv and have set the ruby version to 2.7.3. On terminal when i check the ruby version it shows 2.7.3 and appears like its all good.
I was also able to run the fastlane build locally in the build machine.
However, when i run the same command via buildkite, it stops at the error
“commander-4.6.0 requires ruby version >= 2.4, which is incompatible with the current version , ruby 2.3.7”
How do i get buildkite to pick the ruby version set in in ./bash_profile?