Here's a working example - https://github.com/erichelgeson/jenkins-chef-dsl/blob/master/recipes/build-jdks.rb-Eric HelgesonOn Wed, May 13, 2015 at 3:05 PM, niristotle okram < " target="_blank"> > wrote:So, for the heck of trying i added another 3 attributesdefault['java']['install_flavor'] = 'oracle'default['java']['jdk_version'] = '8'default['java']['oracle']['accept_oracle_download_terms'] = trueso, i have the below among other attributesdefault['java']['install_flavor'] = 'oracle'default['java']['jdk_version'] = '7'default['java']['oracle']['accept_oracle_download_terms'] = truedefault['java']['install_flavor'] = 'oracle'default['java']['jdk_version'] = '8'default['java']['oracle']['accept_oracle_download_terms'] = trueMy kitchen converge shows only JDK8 was installed and JDK7 was ignored.~]$ echo $JAVA_HOME/usr/lib/jvm/java~]$ cd /usr/lib/jvm/jvm]$ lltotal 4lrwxrwxrwx 1 root root 24 May 13 20:40 java -> /usr/lib/jvm/jdk1.8.0_25drwxr-xr-x 8 root root 4096 Sep 18 2014 jdk1.8.0_25--On Wed, May 13, 2015 at 12:42 PM, niristotle okram < " target="_blank"> > wrote:hi,I use the chef community cookbook to install JDK7 on my jenkins servers. I define the below default attributes on my cookbook to install the oracle jdk7default['java']['install_flavor'] = 'oracle'default['java']['jdk_version'] = '7'default['java']['oracle']['accept_oracle_download_terms'] = trueI am looking for some instructions on how to install both jdk7 and jdk8 on the build servers now. I came through this section for the same issue but didn't give a clear instruction on how to do.how can i set the JDK7 as the default, so that all my jenkins job use JDK7 unless i specify in the job itself to use jdk8?--Regards
nirish okramRegards
nirish okram
Archive powered by MHonArc 2.6.16.