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

Cannot launch SBT on slave when master is Windows and slave is Linux

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • sbt-plugin
    • None

      In our environment when we run jobs that use the SBT plug-in the system drive root from the master is pre-pended to the sbt-launcher command line even though sbt-launcher is being invoked on the slave. The command-line looks like this:
      C:\lib\jvm\java-7-openjdk-amd64\bin\java -Dsbt.log.noformat=true -Dcbs=true -jar /opt/wt-sbt/sbt/0.12.0/sbt-launch.jar clean

          [JENKINS-18226] Cannot launch SBT on slave when master is Windows and slave is Linux

          I believe the crux of the issue is with the use of java.io.File objects. The absolute path to the java executable will have a Windows feel to it when the master is hosted on a Windows system. This is a bit of a problem in hudson.model.JDK as well where getBinDir() returns a File object.

          Jonathan Zimmerman added a comment - I believe the crux of the issue is with the use of java.io.File objects. The absolute path to the java executable will have a Windows feel to it when the master is hosted on a Windows system. This is a bit of a problem in hudson.model.JDK as well where getBinDir() returns a File object.

            uzilan uzilan
            tyrius Jonathan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: