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

Deal with the JDK8 hardcoded default installations in ec2-plugin

    XMLWordPrintable

Details

    Description

      I've noticed that in case the check `java --fulversion` fails, hardcoded installations of JDK8 are done in the launchers:
      https://github.com/jenkinsci/ec2-plugin/blob/da65b27d65164b3d8f43ce45f99ed73e5d85009b/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java#L238
      https://github.com/jenkinsci/ec2-plugin/blob/da65b27d65164b3d8f43ce45f99ed73e5d85009b/src/main/java/hudson/plugins/ec2/ssh/EC2MacLauncher.java#L224
      (didn't found the check for the Windows launcher)

      As JDK8 support will be dropped in the next LTS (already dropped on weekly), these installations should be to be changed to JDK11.

      Another solution would be to replace these hardcoded installations in case java isn't installed by an error message indicating java must be installed on the agent in order to use the plugin. (Avoid forcing a JDK > 8)

      Note: this will be certainly a breaking change.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            hlemeur HerveLeMeur
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: