Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5110

Does not support arbitrary ruby home

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • rake-plugin
    • None
    • Linux

      The rake build step does not work when ruby is installed to an arbitrary location on linux. It fails to find rake when running the build.

      For example, on my system, ruby is installed to:

      /mnt/vctbox/ruby

      In Hudson, I have configured a Rake installer with these settings:

      name=vctbox
      RUBY_HOME=/mnt/vctbox/ruby

      There are no errors in the Hudson management screen (and I confirmed that error checking is working, because if I enter a different ruby directory, it says "It seems that ruby gems is not installed")

      When it executes a rake build step using 'vctbox', the build fails with this error: "FATAL: /mnt/bin/rake doesn't exist"

      The issue seems to be in line 23 of hudson.plugins.rake.Util, where it searches up two parent directories from the RUBY_HOME. Why does it do that, instead of just appending "bin/rake" to the RUBY_HOME?

            david_calavera david_calavera
            cpruett cpruett
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: