Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Fastlane can't find gem fastlane

I'm using Fastlane one my admin account (Mac OS) and it works great.

I try now to install and configure Jenkins + Fastlane but when jenkins try to run a fastlane commande, I get that error : can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException)

Path of my fastlane install is : /Users/myusername/.rvm/rubies/ruby-2.4.2/bin

When I try to update fastlane in jenkins account (su jenkins), console say I'm not sudo. No error with my account.

Already tried to inject Path in jenkins conf and to set RVM-managed environment version. But it failed.

like image 269
Florian Mac Langlade Avatar asked Aug 30 '25 17:08

Florian Mac Langlade


2 Answers

Use anyone of below

Using RubyGems

sudo gem install fastlane -NV

Alternatively using Homebrew

brew cask install fastlane

See link for reference link

like image 197
chank007 Avatar answered Sep 02 '25 23:09

chank007


If you using pipeline in jenkins use sh 'gem install fastlane' it works fine.

like image 30
Aravind Avatar answered Sep 03 '25 01:09

Aravind