Jenkins 构建,执行 Shell 错误
Jenkins Build, Execute Shell Error
我正在尝试通过 Jenkins 2.54 on Build 触发 shell 命令。我以前有过这个 运行 但决定在没有 TimeMachine 的情况下重建我的 mac 'clean'..
在后台,我正在使用 node.js 应用程序在 Agile Central (Rally) 中构建应用程序 - 所有这些工作正常,甚至我使用的 shell 命令在 Shell(准确地说是鱼)。
据我所知,我已经安装了所有依赖项,因为当 运行 从 cmd 行..
我正在使用的命令:
ruby /g2ca/git2ca_agile_central.rb devOps
正如在 shell 中直接提到的那样,这会做我需要的一切,使用工件 ID(例如用户故事 US01)进行提交,并将预期结果添加到用户故事变更集中:
但是.. Jenkins 在它的控制台中表现不佳:
+ ruby /g2ca/git2ca_agile_central.rb devOps /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- vcseif (LoadError) from
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /g2ca/git2ca_agile_central.rb:35:in `' Build
step 'Execute shell' marked build as failure
无论如何我都不是专业的编码员!!!所以在这里放轻松,因为我可能会超出我的深度,但这让我感到困惑..
我也在使用 Brew,如果它有帮助,这里是
的输出
Brew Config
HOMEBREW_VERSION: 1.1.12
来源:https://github.com/Homebrew/brew.git
头:8ea778f7c7ea790694485030d105a92a9416ef33
上次提交:9 天前
核心抽头来源:https://github.com/Homebrew/homebrew-core
核心抽头头:55a35bb74627e9eee9537dc726ac07c3dbc59444
Core tap 上次提交:7 小时前
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/自制软件
HOMEBREW_CELLAR: /usr/local/地窖
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: 八核 64 位 haswell
自制软件 Ruby:2.0.0-p648
Clang:8.1 构建 802
Git: 2.11.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python:/usr/local/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python。 framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: 1.8.0_121
macOS: 10.12.4-x86_64
Xcode: 8.3.1
CLT:N/A
X11: N/A
我的 shell 和 Jenkins 之间有 ruby 不匹配吗??
这是我正在使用的:
RallyConnectorForGit-3.7_3
节点 5.4.1
rally_api1.2.1
http客户端2.8.3
vcseif 1.2.0
詹金斯 2.54
我迷路了...还有什么需要请喊!
这是在 HBrew
上的 ruby 版本中修复的
我正在尝试通过 Jenkins 2.54 on Build 触发 shell 命令。我以前有过这个 运行 但决定在没有 TimeMachine 的情况下重建我的 mac 'clean'..
在后台,我正在使用 node.js 应用程序在 Agile Central (Rally) 中构建应用程序 - 所有这些工作正常,甚至我使用的 shell 命令在 Shell(准确地说是鱼)。
据我所知,我已经安装了所有依赖项,因为当 运行 从 cmd 行..
我正在使用的命令:
ruby /g2ca/git2ca_agile_central.rb devOps
正如在 shell 中直接提到的那样,这会做我需要的一切,使用工件 ID(例如用户故事 US01)进行提交,并将预期结果添加到用户故事变更集中:
但是.. Jenkins 在它的控制台中表现不佳:
+ ruby /g2ca/git2ca_agile_central.rb devOps /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- vcseif (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /g2ca/git2ca_agile_central.rb:35:in `' Build step 'Execute shell' marked build as failure
无论如何我都不是专业的编码员!!!所以在这里放轻松,因为我可能会超出我的深度,但这让我感到困惑..
我也在使用 Brew,如果它有帮助,这里是
的输出Brew Config
HOMEBREW_VERSION: 1.1.12
来源:https://github.com/Homebrew/brew.git
头:8ea778f7c7ea790694485030d105a92a9416ef33
上次提交:9 天前
核心抽头来源:https://github.com/Homebrew/homebrew-core
核心抽头头:55a35bb74627e9eee9537dc726ac07c3dbc59444
Core tap 上次提交:7 小时前
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/自制软件
HOMEBREW_CELLAR: /usr/local/地窖
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: 八核 64 位 haswell
自制软件 Ruby:2.0.0-p648
Clang:8.1 构建 802
Git: 2.11.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python:/usr/local/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python。 framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: 1.8.0_121
macOS: 10.12.4-x86_64
Xcode: 8.3.1
CLT:N/A
X11: N/A
我的 shell 和 Jenkins 之间有 ruby 不匹配吗??
这是我正在使用的: RallyConnectorForGit-3.7_3 节点 5.4.1 rally_api1.2.1 http客户端2.8.3 vcseif 1.2.0 詹金斯 2.54
我迷路了...还有什么需要请喊!
这是在 HBrew
上的 ruby 版本中修复的