Restart Jenkins (2024)


Restart Jenkins (2024)

The Jenkins service may need to be restarted to fix issues associated with Jenkins.

The various ways to restart Jenkins are as follows:

  1. Using Manage Jenkins
  2. Restart Jenkins Using CLI
  3. Restart Jenkins in Window
  4. Restart Jenkins in Linux
  5. Restart Jenkins in Mac for M1 and Intel using Homebrew

Using Manage Jenkins
  1. Navigate to the Jenkins dashboard and click on "Manage Jenkins" on the left-hand side menu.
  2. Click on "Reload Configuration from Disk" to reload the configuration changes.
  3. Finally, click on "Safe Restart" to restart Jenkins.

Checkout our related posts :

Restart Jenkins Using CLI
  1. Download the Jenkins-cli.jar from Jenkins dashboard -> Manage Jenkins -> Tools and Actions -> click on Jenkins CLI button.
  2. Open a terminal or command prompt.
  3. Run the following command to restart Jenkins:
    java -jar <path to jenkins-cli.jar> -s <Jenkins URL> restart
    

Restart Jenkins in Window

  1. Open the Command Prompt with administrator permissions on your Windows PC.
  2. Run below command to restart Jenkins on Windows after that.
  3. net stop Jenkins
    
    net start Jenkins 

Restart Jenkins in Linux

To restart Jenkins, enter the systemctl command into Linux terminal:

sudo systemctl restart Jenkins 

Restart Jenkins in Mac for M1 and Intel using Homebrew

User can use the standard brew commands on Mac for M1 and Intel in order to stop and start the Jenkins services.

Start Jenkins service   : brew services start jenkins-lts

Stop Jenkins service    : brew services stop jenkins-lts

Restart Jenkins service : brew services restart jenkins-lts








Recommendation for Top Popular Post :