Skip to main content

Jenkins Project

Published 2 min readMarkdown
Jenkins Project

Hello Readers its my #day28 blog of #90daysofdevops

Today's Topic

✅Jenkins Master Server

✅ Jenkins Agents

✅ Deploy the web app using Jenkins master and worker node

Jenkins Master Server

The main Jenkins Server is the Master Server of Jenkins. This acts as a control server that arranges the defined workflow of the pipeline. The jobs of this Master are as follows:

  • scheduling jobs

  • sending builds to slaves to execute the job

  • keeping track of the slave's states (online/offline)

  • can also directly execute build jobs

    Slave- The slave is a part of the Jenkins environment that runs in a remote environment. The characteristics of slaves include:

    it listens to the Master instance

  • its job is to do as they are told to, which includes executing build jobs conveyed by the Master

Jenkins Project

Project Overview-

Project - Depoly the web app using Jenkins master and worker node

GitHub Repository- https://github.com/shreyakhangan/node-todo-cicd.git

1. Create an EC2 instance

Jenkins_Agent

Jenkins_server

  1. We need to install the Java and docker in both the master and agents also

  1. We need to generate the keys in the master Server

    1. Now we need to go to .ssh directory we will see the public and private keys.

    2. Now we need to add the Public keys from Jenkins-Server to Jenkins- agent

5. Now we need to go Jenkins Dashboard -->Manage Jenkins--->Manage Nodes and Clouds--->Click on New Node

Let's understand a few terms:-

Number of executors-Number of CPU.

Remote Root Directory-Its is the Workspace for the Jenkins

We need to pass the Instance IP address into Host.

Non-Verifying Verification Strategy is used when we tried to ssh between public and private keys.

Task-02-

Run your previous NodeJS on the new agent.

We need to build a new Pipeline

  1. • Create a new pipeline

    1. • Needs to add the details

      GitHub Project Link-https://github.com/shreyakhangan/node-todo-cicd

      • Needs to add Pipeline Code

  1. • Save and try to Build the Pipeline

• To access the todo app agent IP address followed by the port.

I appreciate you taking the time to read my blog, and I hope you found it informative. If you found the content useful, please consider giving it a like, sharing it with others, and following me for more similar posts in the future. Thank you for your support!

Linkedin Profile-https://linkedin.com/in/shreyakhangan

No comments yet. Be the first to comment.

More from this blog