Inconsistent setting of environment variables in jdk tool plugin

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: jdk-tool-plugin
    • None

      If a freestyle job has 'system' jdk set, behaviour changes depending on how many installers are present.

      To reproduce:

      • Ensure only one jdk installer is configured
      • Create freestyle job with selected jdk as 'system'
      • Ensure job runs on worker node (not controller)
      • Add 'execute windows batch command' step to job, which runs 'java -version'
      • Run job
      • Add second configured jdk installer to global tools configuration
      • Re-run job

      Observed results:

      • First run of job succeeds and displays jdk information
      • Second run fails, which java executable not found in path

       

            Assignee:
            Unassigned
            Reporter:
            Tony Noble
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: