What is Jenkins Architecture? Overview of Jenkins Architecture Diagram

blog_auth Blog Author

StarAgile

published Published

Jul 08, 2024

views Views

4,178

readTime Read Time

20 mins

Jenkins Architecture

Jenkins architecture that is distributed is important to a single Jenkins to deal with numerous records and assembles all the while. This blog covers the principal Jenkins architecture and its connected parts. If you are an amateur at Jenkins, it will help you acquire some thought of how Jenkins parts cooperate and the key arrangements included. 

What is Jenkins?

Jenkins is a simple to-utilize open-source CI/CD tool. It has been around for quite a while, and a few associations are utilizing it for their CI/CD requirements. 

Jenkins Pipeline Architecture

Here's the way Jenkins components are assembled and interface: 

  • Engineers submit changes to the source code, found in the storehouse. 
  • The Jenkins CI worker checks the storehouse at ordinary spans and pulls any recently accessible code. 
  • The Build Server incorporates the code into an executable document. In the event of a build failure, the development team is notified with feedback. 
  • Jenkins conveys the form application to the test worker. If the test fizzles, the engineers are alarmed. 
  • In the event that the code is without blunder, the tried application is sent for production.

The records can contain various codes and be huge, requiring numerous forms. Single Jenkin will fail in such a situation and there comes distributed Jenkins for rescue. 

Learn Jenkins by enrolling in the DevOps training online at StarAgile institute and know more about Jenkins pipeline from here

Jenkins Architecture Diagram

https://blog.teqstories.com/wp-content/uploads/2020/06/4-jenkins-2-1024x469.png

 

Source

Jenkins Distributed Architecture

Jenkins utilizes Master-Slave architecture for managing builds that are distributed. In the distributed form communication between Master and Slave happens using TCP/IP. Register for DevOps online courses and learn to work with DevOps CI/CD pipeline.

Jenkins Master 

Your primary server in Jenkins is the Master. The Master's responsibility is to deal with: 

  • To schedule build activities
  • Dispatching works to the slaves for the execution. 
  • Screen the slaves (conceivably taking them on the web and disconnected as required). 
  • Recording and introducing the result of the builds.
  • A Master occurrence of Jenkins can likewise execute the build job straightforwardly.

DevOps Certification

Training Course

100% Placement Guarantee

View course
 

Jenkins Slave 

 

A Slave is a Java executable that is running on a remote machine. Following are the attributes of Jenkins Slaves: 

  • It listens to demands from the Jenkins ace case. 
  • Slaves can run on an assortment of working frameworks. 
  • The work of a Slave is to get in line, which includes executing the build job that the Master dispatches. 
  • You can design an undertaking to consistently run on a specific Slave machine or a specific sort of Slave machine, or essentially let Jenkins pick the following accessible Slave. 

To work with real-time examples in Jenkins take up the DevOps training. 

Steps Involved in Setting up Jenkins Master and Slaves

1. Go to the Manage Jenkins segment and look down to the part of Manage Nodes. 

2. Select the New Node and identify it with a name and select the Permanent Agent option to click OK. 

3. Enter the following things for the node slave machine. 

  • The number of executors needs to be mentioned and it depends on the number of jobs the slave system can handle at one time 
  • The Labels for which the name is entered as "Slave1" are what can be utilized to arrange tasks to utilize this slave machine. 
  • Select Usage and utilize the node to the best possible 
  • For launching, we select the choice of launch agent and interconnect it to the respective master. 
  • If this choice isn't noticeable, go to Jenkins landing page ? Manage Jenkins ? Configure Global Security. 
  • Then from the Agents area select Random and click Save so that you can find the right choices. 
  • Now, enter Custom WorkDir and make it your slave node’s workspace. 
  • Then from the Availability section choose "Leave it online until feasible." Save this setting. 

Upon completing the above-mentioned steps you can see the new node. But at first, it will be disconnected and later reach an online state. It is always possible to put the slave node offline. Follow the steps mentioned above anytime to make it online. 

4. Presently since your slave is fully operational, how about we execute a task on a slave. You can run any existing job if available.

5. This can be done by clicking on the ``Limit the area where the project can be executed” from the General section. Choose the slave name and save it. 

6. Then finally click on Build now to monitor the results which will be displayed as Success when you have followed all the steps correctly.  

Conclusion 

So with this, we have arrived at the finish of this blog on Jenkins Master and Slave Architecture. I am sure you got an idea about it and the right way to set it up as well. 

In the event of you looking for a profession as a DevOps engineer, then you must attend training in Jenkins certification course to learn the right way to use this tool and master the art of CI/CD.

StarAgile conducts a DevOps certification training course that imparts live training on Jenkins. 

Share the blog
readTimereadTimereadTime
Name*
E-Mail*
Select Purpose*
Select Experience*

Keep reading about

Card image cap
DevOps
reviews5023
Top 10 DevOps programming languages in 20...
calender18 May 2020calender20 mins
Card image cap
DevOps
reviews4213
Top 9 Devops Engineer Skills
calender18 May 2020calender20 mins
Card image cap
DevOps
reviews4377
Best DevOps Tools in 2024
calender18 May 2020calender20 mins

Find DevOps Training in Top Cities

We have
successfully served:

3,00,000+

professionals trained

25+

countries

100%

sucess rate

3,500+

>4.5 ratings in Google

Drop a Query

Name
Email Id
Contact Number
City
Enquiry for*
Select Purpose*
Select Experience*
Enter Your Query*