Find Process ID of windows process running on a particular port and then kill the process

With thanks to:

http://blog.singhanuvrat.com/tech/kill-a-process-running-on-a-particular-port-in-windows

 

  • List the processes running on ports
    • netstat -a -o -n
  • kill the task
    • taskkill /F /PID <pid>

Change Jenkins Timezone

To see what time zone your jenkins is uning, in your browser navigate to:

 

http://servername:port/systemInfo

 

To change the jenkins timezone, in the Jenkins base directory, edit jenkins.xml

change this line:

<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080</arguments>

to this:

<arguments>-Xrs -Xmx256m -Duser.timezone=”Europe/London” -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar “%BASE%\jenkins.war” –httpPort=8080</arguments>

Restart that bad boy.