java - Jenkins: JDK configuration -


i have both java 1.7 , 1.8 installed in virtual cent os. installed jenkins , running fine dont know version of java using. how can detect that?

what configuration file of jenkins setup jdk version manually?

edit: ** dont want configure jdk global tool configuration of manage jenkins

first, determine process id of jenkins (e.g., ps aux | grep jenkins)

then check corresponding exe entry in /proc file system:

$ ls -l /proc/2884/exe  lrwxrwxrwx 1 user users 0 aug 24 08:08 /proc/2884/exe -> /usr/lib/jvm/java-8-jdk/jre/bin/java 

for selecting java version, depends on how start jenkins. if start command line, proper setting of path , java_home sufficient. if use service file (/etc/init.d/jenkins, or systemd approach), depends on implementation of service.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -