I need to get PID and Port # to start the Jenkins process. If I get this PID, I can kill this process if necessary.
I start the Jenkins process with the following commands:
java -jar jenkins.war
Sometimes the Jenkins process does not start if this port is taken, and the following happens:
Jenkins home directory: /Users/MacPro/.jenkins found at: $user.home/.jenkins Feb 27, 2016 10:46:09 AM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: FAILED SelectChannelConnector@0.0.0.0 :8080:java.net.BindException: Address already in use java.net.BindException: Address already in use
And I know how to start the jenkins process against a specific port #.
You need to know the commands that use the PID and port, the current job.
java jenkins
Saikat barua
source share