0
0
Jenkinsdevops~5 mins

Installing suggested plugins in Jenkins - Step-by-Step CLI Walkthrough

Choose your learning style9 modes available
Introduction
When you first set up Jenkins, it offers to install suggested plugins. These plugins add useful features to Jenkins without you needing to find and install each one manually.
When you install Jenkins for the first time and want a ready-to-use setup.
When you want to quickly add common tools like Git, pipeline support, and build triggers.
When you prefer Jenkins to handle plugin selection instead of choosing manually.
When setting up a Jenkins server for a team that needs standard CI/CD features.
When you want to avoid missing important plugins that Jenkins recommends.
Commands
This command starts the Jenkins service so you can access the web interface to install plugins.
Terminal
sudo systemctl start jenkins
Expected OutputExpected
No output (command runs silently)
This command checks if Jenkins is running by requesting the homepage on port 8080.
Terminal
curl http://localhost:8080
Expected OutputExpected
<!DOCTYPE html> <html lang="en"> <head><title>Unlock Jenkins</title></head> <body>Unlock Jenkins page content</body> </html>
This step represents using the Jenkins web interface to select 'Install suggested plugins'. This cannot be done via CLI but is essential to complete the setup.
Terminal
echo 'Installing suggested plugins via Jenkins web UI'
Expected OutputExpected
Installing suggested plugins via Jenkins web UI
This command follows the Jenkins logs to watch the plugin installation progress and verify no errors occur.
Terminal
sudo journalctl -u jenkins -f
Expected OutputExpected
Apr 27 12:00:00 jenkins-server jenkins[1234]: Started installing suggested plugins... Apr 27 12:01:30 jenkins-server jenkins[1234]: Plugin installation completed successfully.
-u jenkins - Show logs only for the Jenkins service
-f - Follow the log output live
Key Concept

If you remember nothing else from this pattern, remember: installing suggested plugins via the Jenkins web UI quickly sets up essential features for your Jenkins server.

Common Mistakes
Trying to install suggested plugins using only CLI commands without using the Jenkins web interface.
Jenkins does not support installing suggested plugins purely via CLI during initial setup.
Access the Jenkins web UI on port 8080 and choose 'Install suggested plugins' to proceed.
Not starting the Jenkins service before accessing the web interface.
If Jenkins is not running, the web interface will be unreachable and plugin installation cannot start.
Start Jenkins service with 'sudo systemctl start jenkins' before opening the web UI.
Summary
Start the Jenkins service to make the web interface available.
Access Jenkins on port 8080 and select 'Install suggested plugins' in the web UI.
Monitor Jenkins logs to confirm plugins install successfully.