0

I am running a Jenkins on windows machine with the process of Jenkins.war. 'java -jar jenkins.war'. If I close the command prompt of the service, Jenkins will go down. I want the Jenkins to be up even if the command prompt closed and even after machine reboot, this jenkins to be started. How can we do this on windows machine?

  • 1
    Possibly by making nohup available for Jenkins as detailed in this [answer](https://stackoverflow.com/questions/45140614/jenkins-pipeline-sh-fail-with-cannot-run-program-nohup-on-windows) – ericl Feb 15 '18 at 00:07

1 Answers1

0

You can use create-windows-service-from-executable to make your jenkins.exe as a service. Or else while installing itself, install as a service rather than starting from command line

SV Madhava Reddy
  • 1,858
  • 2
  • 15
  • 33