A2oz

How Do I Restart Jenkins?

Published in Jenkins 1 min read

Restarting Jenkins can be done in a few ways, depending on your setup and preferences.

Restarting Jenkins through the Web Interface

  1. Log in to your Jenkins instance.
  2. Navigate to "Manage Jenkins" in the left sidebar.
  3. Select "Restart" from the options.
  4. Confirm the restart. Jenkins will restart and be available again shortly.

Restarting Jenkins through the Command Line

  1. Open your terminal or command prompt.

  2. Navigate to the Jenkins installation directory.

  3. Run the following command:

    ./jenkins.sh restart

    Note: The command may vary depending on your operating system and Jenkins installation method.

Restarting Jenkins using a Systemd Service (Linux)

  1. Use the systemctl command:
    systemctl restart jenkins

Restarting Jenkins using a Windows Service

  1. Open the Services app.
  2. Locate the "Jenkins" service.
  3. Right-click and select "Restart".

Restarting Jenkins in a Docker Container

  1. Stop the container:
    docker stop jenkins_container_name
  2. Start the container again:
    docker start jenkins_container_name

Remember: Restarting Jenkins will stop all running jobs and builds. Ensure you save any important work before restarting.

Related Articles