Jenkin Intro
2 min readJul 4, 2023
What is Jenkins?
- Jenkins is an open-source continuous integration-continuous delivery and deployment (CI/CD) automation DevOps tool written in Java. It is used to implement CI/CD workflows, called pipelines.
- Jenkins is a tool used for automation, and it is an open-source server that allows all the developers to build, test and deploy software. It works or runs on Java as it is written in Java. By using Jenkins we can continuously integrate projects(jobs) or end-to-endpoint automation.
- Jenkins achieves Continuous Integration with the help of plugins. Plugins allow the integration of Various DevOps stages. If you want to integrate a particular tool, you need to install the plugins for that tool. For example Git, Maven 2 project, Amazon EC2, HTML publisher, etc.
How to set up Jenkins in Linux AWS EC2 instance
- Create an account on AWS and launch an EC2 Linux instance with free tier service.
2. Connect with EC2 instance with SSH:
select the EC2 instance and click on connect.
it shows various connecting services like session service, EC2 connect, SSH client, etc.
Install Java:
sudo apt update
sudo apt upgrade
sudo apt-get install openjdk-11-jdk
java -version
Install Jenkins:
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
sudo systemctl start jenkins
sudo systemctl enable jenkins
sudo systemctl status jenkins
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Congratulation🎉, you have setup Jenkins on AWS ubuntu EC2 instance.
Happy learning !!