1.

Which Commands Can Be Used To Start Jenkins Manually?

Answer»

There are VARIOUS ways to start and stop Jenkins. We have commands/ plug-ins to achieve the same.

Firstly, we can use any one of the below commands to start Jenkins manually using Jenkins URL:

  • (Jenkins_url)/restart: Forces a restart without waiting for builds to complete.
  • (Jenkin_url)/safeRestart: Allows all running builds to complete.

We should always do safeRestart as it waits for running build to complete before restarting Jenkin server. There are other ways as well to start/stop. We can go to Open Console/Command line --> Go to our Jenkins installation directory. The below commands also PRODUCE the same output:

to stop:

jenkins.exe stop

to start:

jenkins.exe start

to restart:

jenkins.exe restart

The SafeRestart PLUGIN can also be used. It is pretty USEFUL (Restart Safely). Once you install the plug-in, It adds a link to be able to restart from the main menu only:

In Red Hat LINUX you can use below commands as well :

  • To know the status of Jenkins: sudo service Jenkins status
  • To start the Jenkins: sudo service Jenkins start
  • To stop the Jenkins: sudo service Jenkins stop
  • To restart the Jenkins: sudo service Jenkins restart


Discussion

No Comment Found