{hudson-plugin-info:pluginId=openJDK-native-plugin}

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

Configuration

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:

#Defaults    requiretty
User_Alias JENKINS = test
Cmnd_Alias OPENJDK = /usr/sbin/alternatives, /usr/bin/yum
JENKINS ALL = NOPASSWD: OPENJDK