Skip to end of metadata
Go to start of metadata

Plugin Information

View openJDK-native-plugin on the plugin site for more information.

This plugin adds auto installer for OpenJDK from native RPM packages and provides switching between OpenJDK vesrions using Linux alternatives

Configuration

Add Java installation, select "Install automatically" and choose OpenJDK installer


Select RPM package, which you want to install



 
Alternatives and yum are run via sudo, therefore appropriate sudoers setup is requited (including switching off tty requirement which is turned on by default or run pseudo-tty e.g. by including -t param in ssh command).
Example setup:

/etc/sudoers.d/jenkins
#Defaults    requiretty
User_Alias JENKINS = test_user
Cmnd_Alias OPENJDK_INSTALL = /usr/sbin/alternatives, /usr/bin/yum
JENKINS ALL = NOPASSWD: OPENJDK_INSTALL

Changelog

Upcoming changes

Release 1.1 (2015-01-16)

Release 1.0 (2012-03-01)

  • Initial release
  • No labels

3 Comments

  1. This doesn't work on Ubuntu -- RedHat only.

    1. It doesn't work on Redhat either!

      Checking OpenJDK installation...
      $ rpm -q java-1.7.0-openjdk
      java-1.7.0-openjdk-1.7.0.79-2.5.5.3.el6_6.x86_64
      Switching to java-1.7.0-openjdk using alternatives ...
      $ sudo alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
      /usr/lib/jvm/jre-1.7.0-openjdk/bin/java has not been configured as an alternative for java
      OpenJDK ERROR Switching OpenJDK via atlernatives to java-1.7.0-openjdk failed! /usr/bin may not exists or point to different java version!

  2. HI,

    Is this plugin still maintained?

    Any plans to add Java11 installers?

    Cheers!