詹金斯 - 法兰克福无法找到宝石快车道

时间:2018-02-08 14:07:15

标签: macos jenkins fastlane

我使用Fastlane一个我的管理员帐户(Mac OS),效果很好。

我现在尝试安装和配置Jenkins + Fastlane但是当jenkins尝试运行fastlane命令时,我收到了错误:can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException)

我的fastlane安装路径为:/Users/myusername/.rvm/rubies/ruby-2.4.2/bin

当我尝试在jenkins帐户(su jenkins)中更新fastlane时,控制台说我不是sudo。我的帐户没有错误。

已经尝试在jenkins conf中注入Path并设置RVM管理的环境版本。但它失败了。

3 个答案:

答案 0 :(得分:2)

如果您在詹金斯中使用管道,请使用sh 'gem install fastlane' 效果很好。

答案 1 :(得分:1)

使用以下任何人

使用RubyGems

sudo gem install fastlane -NV

或者使用Homebrew

brew cask install fastlane

请参阅参考链接link

答案 2 :(得分:0)

这是我修复类似错误的方法:

gem update bundler
相关问题