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
Post a Comment