• 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?

          [JENKINS-5110] Does not support arbitrary ruby home

          Code changed in hudson
          User: : david_calavera
          Path:
          trunk/hudson/plugins/rake/src/main/java/hudson/plugins/rake/Util.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=25354
          Log:
          fixes JENKINS-5110: Rake plugin does not support arbitrary ruby home

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : david_calavera Path: trunk/hudson/plugins/rake/src/main/java/hudson/plugins/rake/Util.java http://fisheye4.cenqua.com/changelog/hudson/?cs=25354 Log: fixes JENKINS-5110 : Rake plugin does not support arbitrary ruby home

          fixed in Rake 1.6.3

          david_calavera added a comment - fixed in Rake 1.6.3

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

              Created:
              Updated:
              Resolved: