我们让詹金斯用ruby脚本构建工作。 我们想要一个gem(需要'net / ssh')。 通过Jenkins运行时,此宝石失败。 但在Jenkins服务器上运行时取得成功。
/usr/local/rvm/scripts/rubies/ruby-2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- net/ssh (LoadError) from /usr/local/rvm/scripts/rubies/ruby-2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require'from / var / lib / jenkins / workspace /自动同步/自动化/ jenkins / database_bkup / database_bk.rb:2:在''构建步骤'执行外壳'标记构建失败
在当地的宝石名单
minitest(5.10.1)multipart-post(2.0.0)net-ssh(4.2.0)net-telnet(0.1.1)nokogiri(1.8.1)openssl(默认值:2.0.3)power_assert(0.4.1)心理(默认:2.2.2)
RubyGems环境:
RUBYGEMS版本:2.6.11 RUBY VERSION:2.4.1(2017-03-22 patchlevel 111)[x86_64-linux] 安装目录:/usr/local/rvm/scripts/gems/ruby-2.4.1 用户安装目录:/var/lib/jenkins/.gem/ruby/2.4.0 RUBY EXECUTABLE:/usr/local/rvm/scripts/rubies/ruby-2.4.1/bin/ruby EXECUTABLE DIRECTORY:/usr/local/rvm/scripts/gems/ruby-2.4.1/bin SPEC CACHE DIRECTORY:/var/lib/jenkins/.gem/specs SYSTEM CONFIGURATION DIRECTORY:/ etc
RUBYGEMS平台:
红宝石
x86_64的Linux的
创业板路径:
/usr/local/rvm/scripts/gems/ruby-2.4.1 /usr/local/rvm/scripts/gems/ruby-2.4.1@global 创业板配置:
:update_sources => true :verbose => true :backtrace => false :bulk_threshold => 1000 远程资源:
https://rubygems.org/ SHELL路径:
/usr/local/rvm/scripts/gems/ruby-2.4.1/bin /usr/local/rvm/scripts/gems/ruby-2.4.1@global/bin /usr/local/rvm/scripts/rubies/ruby-2.4.1/bin 在/ usr /本地/ RVM /脚本/箱 /var/lib/jenkins/.sdkman/candidates/grails/current/bin 在/ usr / local / sbin中 在/ usr / local / bin目录 / usr / sbin目录 在/ usr / bin中 / sbin目录 /箱 /卡/箱
链接地址:
http://www.djcxy.com/p/25281.html
上一篇:
Jenkins Build Job Failed due to Ruby Gem Error
下一篇:
Reading stdout of Linux instance with Ruby gem net