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

Request for Feature: allow specifying a custom Java binary for the agent process

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • ec2-plugin
    • None

      On the Jenkins Public Infrastructure, we would like to explicitly specify the java binary used to spawn the agent process.

      The rationale is the following:

      • A good practise is to use the same JDK on both agent and controllers
      • The AMI that we are using have multiple JDKs installed (8,11, 17): we defined the 11 as default which maps to the controller ci.jenkins.io for today. But in the near future, we'll have to upgrade the controller's JDK to JDK17 while keeping JDK11 as a default.
      • The plugins for Kubernetes agents, Azure VM agents, Azure Container instances, and also the permenant agents (both SSH and inbound) all have a field "Agent Java Path" to specify the "java" command.
      • The EC2 plugin already specifies a "Agent JVM Options" field used for the agent process command

      (Edit: adding system informations)

      • Jenkins Core LTS 2.346.3
      • EC plugin 1.68

            hlemeur HerveLeMeur
            dduportal Damien Duportal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: