Class OpenJDKInstaller

  • All Implemented Interfaces:
    hudson.ExtensionPoint, hudson.model.Describable<hudson.tools.ToolInstaller>

    public class OpenJDKInstaller
    extends hudson.tools.ToolInstaller
    Auto-installer of native OpenJDK packages for RedHat-like distros Switch to required OpenJDK version via Linux alternatives. If required OpenJDK is not installed, try to install it via yum. Alternatives and yum are run via sudo, therefore appropriate sudoers setup is requited (including switching off tty requirement). Example setup:
      #Defaults    requiretty
      User_Alias JENKINS = test
      Cmnd_Alias OPENJDK = /usr/sbin/alternatives, /usr/bin/yum
      JENKINS ALL = NOPASSWD: OPENJDK
     
    Author:
    vjuranek