Immediately shuts down Jenkins server.
In Windows CMD.exe
, Go to folder where jenkins-cli.jar
file is located.
C:\Program Files (x86)\Jenkins\war\WEB-INF
Use Command to Safely Shutdown
java -jar jenkins-cli.jar -s http://localhost:8080 safe-shutdown --username "YourUsername"
--password "YourPassword"
The full list of commands is available at http://localhost:8080/cli
Credits to Francisco post for cli
commands.
Reference:
Hope helps someone.