Jenkins Configuration and Tools

Last Updated : 29 Jan, 2026

Jenkins, a leading automation server, empowers developers to efficiently build, test, and deploy software. Properly configuring Jenkins is essential for smooth operation and effective management of pipelines, plugins, and tools.

Jenkins Server Initialization

  • With the help of These bellow command, we can start the Jenkins server with redirection to the folder where our jenkins.war file is present, and run the command which is shown in the CMD.
Screenshot-2024-12-02-170958
  • Then Jenkins will start on the browser with the port localhost 8080
  • Open the browser and Redirect to the localhost 8080 port and add the Credentials to the admin user and login the Jenkins server.
Screenshot-2024-12-02-170421
Jenkins Dashboard

Running Jenkins manually each time can be tedious. Automate the startup process by creating a batch file:

  • Write a .bat script with the following commands:
cd [path to Jenkins WAR file]java -jar jenkins.war
 .bat script
 .bat script
  • Save it as start-jenkins.bat and double-click to execute.
Screenshot-2024-12-02-172926

System Configuration: Setting Up Jenkins for the First Time

The System Configuration section in Jenkins allows you to define global settings that control its behavior. Here's how to access and configure it:

  • Click on Manage Jenkins in the left sidebar.
Manage Jenkins
Manage Jenkins
  • Select System Configuration to view global settings.
System Configuration
System Configuration

Key Configurations

System Configuration
System Configuration
  • Home Directory: Jenkins stores all build-related data here. By default, this is located under C:\Users\[username]\.jenkins on Windows. It contains jobs, workspaces, plugins, and configuration files.
  • Jenkins URL: Defaults to http://localhost:8080. You can change this to a custom domain or IP address if needed.
  • System Message: Use this to notify users about system updates or downtimes.
  • Number of Executors: This setting defines how many parallel builds Jenkins can handle. The default is 2, but it can be adjusted based on your system’s resources.

Configuring Global Tools

Jenkins supports a variety of tools required for automation pipelines, such as JDK, Maven, and Git. Configuring these tools ensures smooth execution of your pipelines.

Steps to Configure Tools

  • Go to Manage Jenkins > Global Tool Configuration.
Global Tool Configuration
Global Tool Configuration.
  • Add the required tools by providing their paths or enabling Jenkins to install them automatically.

Common Tools and Their Configuration

Common Tools and Their Configuration
Common Tools and Their Configuration
  • JDK: Specify the installation path of your Java Development Kit. It's better to use an existing installation path rather than letting Jenkins install it.
  • Maven: Similarly, define the path for Maven. Ensure your settings.xml file is configured for proxy settings if applicable.
  • Git: Provide the path to the git.exe file on your machine.
Additional Tools: Jenkins supports other tools like Gradle, Ant, Node.js, and Python. Configure them based on project requirements.

Managing Jenkins Plugins

Plugins are a cornerstone of Jenkins, enabling extended functionality.

Steps to Manage Plugins

  • Navigate to Manage Jenkins > Manage Plugins.
Manage Plugins.
Manage Plugins.
  • Use the tabs to:
    • View Installed Plugins.
    • Check for Updates.
    • Explore Available Plugins for additional features.
Screenshot-2024-12-02-181059
  • Install or remove plugins as needed. Commonly used plugins include Maven, Git, and email notifications.
Tip: Always keep plugins updated for improved security and performance.

Other Configurations

Setting up email notifications ensures stakeholders are informed about build statuses. To configure email notifications:

  1. Under System Configuration, find the SMTP server settings.
  2. Provide server details (e.g., Gmail or enterprise email).
  3. Test the configuration by sending a test email.

Jenkins also allows you to view system logs for troubleshooting and performance monitoring. Use the System Log section in Manage Jenkins to review logs.

Advanced Configurations

While not always necessary for beginners, advanced users can explore:

  • Master-Slave Architecture: Configure nodes to distribute workloads across multiple systems.
  • Cluster Setup: Add nodes (Linux, Mac, Windows) to a Jenkins cluster for larger environments.
  • Custom Home Directory: Change the default home directory by defining a custom JENKINS_HOME environment variable.
Comment

Explore