
Jenkins is one of the most widely used automation servers for continuous integration and continuous delivery. Teams rely on it to build code, run tests, and deploy applications many times a day. From time to time, Jenkins needs to be restarted, most commonly after installing or updating plugins, changing certain system settings, or recovering from performance problems. While you can restart Jenkins from the command line or through a service manager, many administrators prefer the convenience of the web interface, especially when they do not have direct server access. This guide explains every way to restart Jenkins from the web UI, the difference between a safe restart and an immediate restart, and how to troubleshoot common issues.
Streamline Your Development Pipeline with AAMAX.CO
Reliable deployment pipelines are a key part of delivering high-quality software. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their engineering team builds modern applications backed by automated testing and continuous delivery workflows, so updates reach users quickly and safely. If your organization needs custom software built with professional DevOps practices, their web application development services combine robust architecture with dependable release processes.
Why You Might Need to Restart Jenkins
Jenkins loads plugins and many configuration values at startup. When you install a new plugin, update existing ones, or remove plugins, a restart is usually required for the changes to take effect. Restarts can also resolve memory leaks, stuck executors, or unresponsive agents. Some security updates require a restart as well. Because restarts interrupt running builds, it is important to choose the right method for your situation.
Prerequisites: Administrator Permissions
Only users with the Overall Administer permission can restart Jenkins from the web interface. If you are using matrix-based security or role-based authorization, confirm that your account has the necessary rights. Without them, the restart URLs will return an access denied error.
Method 1: Safe Restart Using the URL
The recommended way to restart Jenkins is a safe restart. Open your browser and navigate to your Jenkins address followed by /safeRestart, for example https://jenkins.example.com/safeRestart. Jenkins will ask you to confirm. Once you click Yes, Jenkins enters quiet mode, which prevents new builds from starting, waits for all currently running builds to finish, and then restarts. This protects in-progress work and avoids broken build artifacts.
Method 2: Immediate Restart Using the URL
If you need to restart right away, navigate to your Jenkins address followed by /restart. After confirmation, Jenkins restarts immediately, terminating any running builds. Use this option only when necessary, such as when Jenkins is unresponsive or builds are stuck and cannot finish on their own. Be sure to warn your team first, since interrupted builds will need to be rerun.
Method 3: Restart from the Plugin Manager
When you install or update plugins, Jenkins offers a built-in restart option. Go to Manage Jenkins, then Plugins. After selecting plugins to install or update, the download progress page includes a checkbox labeled Restart Jenkins when installation is complete and no jobs are running. Selecting it triggers a safe restart once the installation finishes and builds complete. This is the most convenient method during plugin maintenance.
Method 4: Use Quiet Mode Before Restarting
For planned maintenance, you can prepare Jenkins by enabling quiet mode first. Go to Manage Jenkins and select Prepare for Shutdown, or visit the /quietDown URL. Jenkins will stop scheduling new builds and display a banner notifying users. Once running builds finish, you can trigger a restart. If you change your mind, the cancel option or the /cancelQuietDown URL returns Jenkins to normal operation.
Method 5: Install a Restart Button Plugin
Some administrators prefer a visible restart link in the interface. Plugins such as Saferestart add a Restart Safely option to the Jenkins sidebar, so you do not have to remember URLs. Install it through the plugin manager, restart once, and the new link will appear for administrators.
Method 6: Use the Script Console
Jenkins includes a Groovy script console under Manage Jenkins. Administrators can run commands that interact with the Jenkins instance, including triggering a safe restart through the Jenkins API. This approach is useful for automation or for advanced users, but it should be used carefully because the script console has full control over the system.
What Happens During a Restart
During the restart, the web interface displays a message indicating that Jenkins is restarting. Depending on the number of plugins, jobs, and the server's resources, the process may take anywhere from a few seconds to several minutes. When Jenkins comes back online, refresh the page and log in again if prompted. Check the system log under Manage Jenkins to confirm that all plugins loaded correctly.
Troubleshooting Restart Issues
If Jenkins does not come back after a restart from the web UI, the restart may not be supported in your environment. Jenkins can only restart itself when it runs under a supported service wrapper, container, or launcher. In such cases, you will need to restart the service with your operating system's service manager or restart the container. If Jenkins starts but behaves strangely, a plugin may have failed to load; review the logs and roll back or update incompatible plugins. If a safe restart seems stuck, a long-running or hung build may be preventing it; abort that build manually.
Best Practices for Restarting Jenkins
Schedule restarts during low-activity periods and announce them to your team. Always prefer safe restarts over immediate ones. Back up your Jenkins home directory before major plugin updates. Keep Jenkins and its plugins up to date to reduce the risk of compatibility issues, and test significant changes in a staging instance when possible.
Conclusion
Restarting Jenkins from the web UI is simple once you know the options. Use the safeRestart URL or the plugin manager checkbox for routine restarts, quiet mode for planned maintenance, and the immediate restart only when necessary. Ensure you have administrator rights, monitor the logs afterward, and follow best practices to keep your CI/CD pipeline stable and your builds running smoothly.
