简体   繁体   中英

jenkins can't locate rake installation even though path is given explicitly

EDIT: After correcting my job configuration, I now receive the following error when running this job:

[workspace] $ /usr/local/bin/bin/rake kickoff
/usr/bin/env: ruby: No such file or directory
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE

I am trying to set up a Jenkins server to run cucumber tests via a rake task.

I have the rake plugin installed, ruby 2.0.0 installed, and all necessary gems installed. I also have Rubygems installed.

Rake is installed here: /usr/local/bin/rake

Ruby is installed here: /usr/local/bin/ruby

Here is a screenshot of the Rake configuration for Jenkins: 在此处输入图片说明

Here is a screenshot of the Ruby configuration for Jenkins: 在此处输入图片说明

Despite what that warning says, Rubygems is installed to: /usr/local/bin/gem

When I try to run a simple test (that just evaluates to true always), I get the following error:

Building in workspace /webdata/jenkins/jobs/kickoff_build/workspace
Updating https://svnprod.x.net/svn/x/trunk/inside_automation at revision '2015-07-10T09:50:36.495 -0400'
At revision 9227
no change for https://svnprod.x.net/svn/x/trunk/inside_automation since the previous build
FATAL: /usr/bin/rake doesn't exist
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE

Why is it looking for rake in /usr/bin ???? I pointed this job directly to the directory of the rake file, /usr/local/bin/rake ?

通过创建与rake可执行文件的符号链接,我能够纠正此问题以及其他一些问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM