-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
本地执行命令运行正常, 但 jenkins 下 fir publish 报错 #261
Comments
本地执行命令正常,在jenkins中执行此命令会报上述异常 |
大概率环境变量有问题. 你可以重新配置你的环境变量, 并确保脚本前面使用的是 如果你不会配置的话 请在 jenkins plugin 中搜索 rvm plugin 之后在插件中匹配 你在 rvm 中安装的 ruby 版本 2.6.5 |
请问下你这个问题解决了吗? @louis2610 |
|
tips 这种问题 绝大多数 都是因为 jenkins 脚本的首行 没有加
导致的 建议调试的时候这么执行
|
在shell的第一行加入这个试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in
'find_spec_for_exe': can't find gem fir-cli (>= 0.a) with executable fir (Gem::GemNotFoundException) from /usr/local/rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in
activate_bin_path'from /usr/local/rvm/gems/ruby-2.6.5/bin/fir:23:in
<main>' from /usr/local/rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in
eval'from /usr/local/rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `
Build step 'Execute shell' marked build as failure
The text was updated successfully, but these errors were encountered: