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

Linux master, windows slave causes the sbt plugin to create an incorrect path to java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: sbt-plugin
    • Labels:
      None
    • Environment:
      CentOS 6.4 master, Windows 7 slave
    • Similar Issues:

      Description

      I have a build job that runs on the windows build slave. I am using the built-in Jenkins JDK installer to install a local 1.7 JDK on the slave. This succeeds.

      However, when sbt tries to run, it errors out because it incorrectly constructs the path to the java executable:

      cmd.exe /C /c:\h2_tritium_ui\tools\hudson.model.JDK\Latest_1.7/bin/java -Dsbt.log.noformat=true -jar c:\manually_installed_tools\sbt\bin\sbt-launch.jar test

      Note the leading forward slash. I figure it is assuming a linux box.

        Attachments

          Issue Links

            Activity

            Hide
            brennx0r Brenna Flood added a comment - - edited

            I just noticed the same behavior with my company's Jenkins implementation today. Master is CentOS 5, slave is Windows 7. Jenkins 1.483, manually installed JDK 1.7 (56). Any advice on a fix for this is appreciated!

            Show
            brennx0r Brenna Flood added a comment - - edited I just noticed the same behavior with my company's Jenkins implementation today. Master is CentOS 5, slave is Windows 7. Jenkins 1.483, manually installed JDK 1.7 (56). Any advice on a fix for this is appreciated!
            Hide
            brennx0r Brenna Flood added a comment -

            Any news on the progress towards a bug fix?

            Show
            brennx0r Brenna Flood added a comment - Any news on the progress towards a bug fix?
            Hide
            danielbeck Daniel Beck added a comment -

            This has been resolved in January 2013:
            https://github.com/jenkinsci/sbt-plugin/commit/43530b31ef9ab9c6c0271dcd648c297cea859f34

            Nobody bothered to release the plugin since mid 2012 though, so the fix is not released.

            Workaround: Build and run a snapshot build of the plugin.

            Show
            danielbeck Daniel Beck added a comment - This has been resolved in January 2013: https://github.com/jenkinsci/sbt-plugin/commit/43530b31ef9ab9c6c0271dcd648c297cea859f34 Nobody bothered to release the plugin since mid 2012 though, so the fix is not released. Workaround: Build and run a snapshot build of the plugin.

              People

              Assignee:
              uzilan uzilan
              Reporter:
              olhado Mike Chmielewski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: