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

Plugin relies on 'java' being in the system path

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • buckminster-plugin
    • None

      The buckminster plugin relies on the 'java' executable being in the system path variable.
      That raises 2 issues:
      1. If java is not in the path, the plugin cannot be used
      2. You cannot use another java than the one in the system path

      Steps to reproduce:
      1. remove the path to the java executable from the system's path
      2. execute any build with a buckminster build step

      Solution:
      The plugin needs to get the full path to java from hudson

      More Information:
      http://www.eclipse.org/forums/index.php?t=msg&th=158715&start=0&S=60f5913f2ff7808b5a6e242a548e855f

          [JENKINS-5004] Plugin relies on 'java' being in the system path

          Code changed in hudson
          User: : jutzig
          Path:
          trunk/hudson/plugins/buckminster/src/main/java/hudson/plugins/buckminster/command/CommandLineBuilder.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=24553
          Log:
          JENKINS-5004 Plugin relies on 'java' being in the system path
          it's now checked if a jdk has been configured in hudson. If so, that jdk's path is used. If not, the plugin behaves like before and assumes 'java' is in the system path

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jutzig Path: trunk/hudson/plugins/buckminster/src/main/java/hudson/plugins/buckminster/command/CommandLineBuilder.java http://fisheye4.cenqua.com/changelog/hudson/?cs=24553 Log: JENKINS-5004 Plugin relies on 'java' being in the system path it's now checked if a jdk has been configured in hudson. If so, that jdk's path is used. If not, the plugin behaves like before and assumes 'java' is in the system path

          jutzig added a comment -

          Now the JDK configured in hudson is used for the path if one was configured. If not 'java' is invoked and therefore needs to be in the system path.
          Fixed in 0.9.3 revision 24553

          jutzig added a comment - Now the JDK configured in hudson is used for the path if one was configured. If not 'java' is invoked and therefore needs to be in the system path. Fixed in 0.9.3 revision 24553

            jutzig jutzig
            jutzig jutzig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: