Jenkins uses wrong JDK for Maven build step

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: maven-plugin
    • None
    • Environment:
      Solaris 10 x86, Jenkins 2.11, Linux x86_64

      Job is configured as multiconfiguration project.
      There are 2 build slaves solaris/sparc and solaris/x86. A jdk 1.7 installed at /usr/jdk/jdk1.7.0_80 is configured and assigned to the job.

      The maven build step on solaris/x86 failed with the error:

      Error: JAVA_HOME is not defined correctly.
        We cannot execute /usr/jdk/jdk1.6.0_111/bin/java
      

            Assignee:
            Unassigned
            Reporter:
            Dzianis Mazuronak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: