Jenkins – Start/stop service for jenkins in not working in windows

Jenkins

I am new to Jenkins. I have installed Jenkins on Apache tomcat server. I have installed few plugins and have to restart it. When I try to restart using http://localhost:8080/jenkins/safeRestart it does not work and displays message "Jenkins cannot restart itself as currently configured". I tried to restart using windows service "C:\Program Files (x86)\Jenkins>Jenkins.exe restart,'jenkins.exe' is not recognized as an internal or external command,operable program or batch file. Can you please let me know if there are any other way to restart it.

Thanks and Regards
Swathi

Best Answer

1-try the plugin in jenkins :

SafeRestart plugin 

https://wiki.jenkins-ci.org/display/JENKINS/SafeRestart+Plugin

2-stop your jinkins server , and run this command

java -jar jenkins.war restart 
Related Topic