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.

- 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.

Running Jenkins manually each time can be tedious. Automate the startup process by creating a batch file:
- Write a
.batscript with the following commands:
cd [path to Jenkins WAR file]java -jar jenkins.war
- Save it as
start-jenkins.batand double-click to execute.

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.

- Select System Configuration to view global settings.

Key Configurations

- Home Directory: Jenkins stores all build-related data here. By default, this is located under
C:\Users\[username]\.jenkinson 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.

- Add the required tools by providing their paths or enabling Jenkins to install them automatically.
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.xmlfile is configured for proxy settings if applicable. - Git: Provide the path to the
git.exefile 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.

- Use the tabs to:
- View Installed Plugins.
- Check for Updates.
- Explore Available Plugins for additional features.

- 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:
- Under System Configuration, find the SMTP server settings.
- Provide server details (e.g., Gmail or enterprise email).
- 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_HOMEenvironment variable.