Jenkins CI/CD Pipeline - SonarQube, Docker, Github Webhooks on AWS | Resume Project | English
ฝัง
- เผยแพร่เมื่อ 6 ก.พ. 2025
- In this video, we will explore how to set up a Jenkins CI/CD pipeline using Github, Sonarqube, and Docker on an AWS EC2 instance.
Jenkins is a popular open-source automation server that helps automate various tasks in the software development process, including building, testing, and deploying software. Github is a code repository that provides version control and collaboration tools, and Sonarqube is a code quality management tool that helps analyze and manage code quality in software projects. Docker is a containerization platform that helps simplify the deployment of software applications.
First, we will create an AWS EC2 instance and install Jenkins on it. We will then set up a Github repository and integrate it with Jenkins. Next, we will configure Sonarqube to analyze code quality in our Github repository. Finally, we will create a Docker image of our application and deploy it using Jenkins.
Throughout the video, we will explain the importance of each step and provide detailed instructions on how to configure each tool to work together seamlessly. By the end of this video, you will have a working CI/CD pipeline that will help automate the software development process and ensure the quality of your code.
Whether you are a developer, software engineer, or DevOps professional, this video will provide you with valuable insights on how to set up a CI/CD pipeline using Jenkins, Github, Sonarqube, and Docker on an AWS EC2 instance. Join us in this exciting journey and learn how to streamline your software development process today!
Make sure to subscribe to our channel if this video helped you and you want to see more content like this. Don't forget to give this video a thumbs up if you found it helpful and hit the notification bell icon so you don't miss any updates from our channel. Thank you for watching!
#cicd #jenkins #devopsprojects
Thank you everyone for the love, support and the patience. We just launched a new CI/CD Project Video using Github, Jenkins, Ansible and Docker.
Check out our new CI/CD Project video.
th-cam.com/video/h7k45phtZgc/w-d-xo.html
@aareezasif can you make videos about aws , aws ec2
thanks man, this is really awesome!
key timestamps for easy reference:
06:12 set up jenkins server
12:35 create jenkins pipeline
14:22 enable github webhook
16:00 test jenkins pipeline
18:17 set up sonarqube server
24:24 set up new sonarqube project
26:15 create new sonarqube token
27:24 install and configure SonarQube Scanner plugin in jenkins
31:49 test jenkins pipeline (which incl. the sonarqube code checking build step)
33:00 set up docker server (i.e. the hosting server)
37:05 set up ssh of docker server, create a ssh key pair in jenkins server and copy to docker server
39:30 add docker server into jenkins pipeline
41:05 add a remote shell build step to test if jenkins server can ssh into docker server and run shell script
42:19 create a Dockerfile
43:54 add a execute shell build step to copy build files from jenkins server to docker server
47:54 in the docker server, grant permission to user ubuntu to execute $docker commands
48:34 add a remote shell build step to build the docker image and spin it up in docker server
Hi, all went good only thing now its not possible to get the ssh form jenkins ec2 to Dcocker ec2 following the same steps. mentioned at 37:05. after modifying the sshd_config and restart the same, getting the same public key permission denied error. over time do you think some settings ben changed? how I can achieve this jenkins to docker ssh now? can you help me with the steps? have to fix a similar kind of issue.
@@soumitrabose3277 I also faced a similar issue? How can I achieve this?
You are the Goat, thanks because of you, I got the JOB!!
Thank you! I'm glad my videos helped you to land on a job! Congratulations 🥳🎉
I want to applaud your ability to strike the perfect balance between simplicity and technicality. You managed to explain intricate concepts without overwhelming the audience, ensuring that even viewers with varying levels of knowledge could follow along. It's a testament to your exceptional communication skills and the thoughtfulness you put into tailoring your content to the point to your audience's needs.
This might be the best comment I’ve seen on TH-cam. Definitely gonna watch this because of this comment.
Thank you so much for this video. It took me 17 builds to complete the entire steps but it worth all.
Glad it helped!
Can you tell me where you found the Server Group because my my Jenkins version is updated so I am unable to do it
Thanks a lot. This is the most comprehensive DevOps project video out there on TH-cam.
Also you struck the perfect balance between simplicity and technicality. Please make more such project videos.
Glad it was helpful! Thank you.
You have implemented all the concepts in a very simple way, thats why its easy to understand and for hands on. I have completed this project as it is, we expect more project videos like this.
There are more projects coming soon!
@@aareezasif need that with kubernetes
Thanks a lot for this video really helped out understand the concept of the CI/CD pipeline. It's one of the simple video which i have seen till now.
Thanks for the feedback! I'm glad it helped you understand the concepts of CI/CD Pipelines
Love the simplicity in the flow ❤
Ive watched tons of videos and this was so easy to understand and follow. Thank you!
thank you so much, i was learning devops, i was really confused, but after watching the whole process in your amazing and simple video i get to know how will i do it now!!!
thanks again man
🚀 New Video Alert! 🚀
Hey Everyone! 🎉 We've just launched a brand new video on setting up a Kubernetes cluster on Ubuntu 22.04!
This is perfect for anyone starting their career in DevOps or looking for a solid resume project. Whether you're a beginner or looking to deepen your skills, this guide will help you get hands-on with Kubernetes.
💻 Check it out here: th-cam.com/video/2XlI9qqed04/w-d-xo.htmlsi=XI2NayMmH5eLfQxd
Don't forget to like, comment, and subscribe for more DevOps tutorials! 😊
#Kubernetes #Ubuntu #DevOps #TechCareers #ResumeProjects
Excellent teaching sir awesome clearly understood
Now i am thinking devops is very easy thank you 👍
One of the best video ever for Beginners-Industry Project, Keep Doing🖥
Thanks a ton
@14:13 webhook for jenkins auto trigger build
@20:17 install sonarQube
@24:28 Configure SonarQube
@27:20 Configure Jenkins for SonarQube
just tried the full setup on my aws account its working fine :) thanks Aareez!!
I'm glad everything is working fine and You're welcome :)
Hey Aareez, you did such a great video. Everything clear, straight to the point and undestandable. Please keep doing more videos like this and adding more complexity such as installing Grafana + Prometeus.
Thank you! I'll make a video on it.
After two failed attempts finally I executed this project 😊 felt so happy. Thank you for this wonderful session I got the basic understanding of how different tools integrate in Devops. Please keep up your work 🙏
Congrats! You did a great job there.
thankyou so much , i finally was able to understand and run the pipeline , now i have idea how devops and cicd works
hello can you please help me i am not able to connect docker server with jenkins server
Thank you for this! Was a bit tricky getting things to work but I was able to figure everything out.
im about to start my devops journy,
and i got glimps of what is exactly devops engineer do,
thanks god bless you
This is a great job to understand whole process in limited time . Thanks ))
Glad it was helpful!
Wow... Great bro... Nice explanation
Hats off bro 💯💯🙌🙌
seedhi baat no bakwas
Exactly!
I watched too many tutorial but none of them close to what you make so really appreciate it
either it's because I already know few things but in this tutorials almost everything is new for me
Thanks again
youtube scrolling show your video its awesome you are best tutor pls make video about kubernetes love from india subscribed you sir
one of the best devops video which anyone can follow and work on CI/CD .thankyou!
Thanks for a very good demo of these technologies. Good job.
You're welcome!
Thanks a lot. Implemented the whole project and CSS was working for me perfectly. Will repeat this few times. Thanks again
Greatly appreciate @AareezAsif, very well explained .Kudos
This is one of the simplest easy and clearly articulated CI/CD DevOps tutorial on TH-cam. Awesome. I only have one question, instead of using ssh to connect to the servers created on AWS can i just use the connect button/option provided on the AWS EC2 instance and connect directly?
Did it work for you?
did it work?
One of the best videos ever .
wounderful bhaiya simple and fast without any lag❤🎉
This is a very fantastic piece. I made sure to jot down the steps in my simple terms so I can go forth to do the hands on. I hope to write a robust documentation on this project and give you a shout out .. Will share with you on LinkedIn so you could go through it.
Thanks for this.. Really helped.
I'm hoping to see how we'll integrate terraform and Ansible into this project in a progressive manner. ❤❤❤❤
Thanks you so much. I was really stuck with the devops practice project but then i came across your video, it was so good. I really appreciate your efforts man . Hats off!!!
You're very welcome!
Itna simple kaise explain kar lete ho bro. Good going, I wish you 50k subscribers in coming months. God bless you
Complete informative. Kindly upload informative videos that help learners to get explicit knowledge in practicals. 😊👍👍
Completed this project thanks for sharing knowledge for free.
Good job! I'm glad you learned something new
Thanks for the project Aareez. Much appreciated! Great help! :)
You're most welcome!
Bro thank you so much, by far the best explanation
You're always welcome!
Neat and clean explanation. Please create more complex CI CD project video which is used in day to day production environment in companies
simply awsme..kp it up
Top notch content, perfect tutorial
Appreciate your efforts and shows your knowledge
Great Video Asif bhai, I was able to implement it and learned in a basic and easy way how we can integrate sonar qube and Docker to jenkins and publish our website.
one suggestion would be just try to explain when you are doing any steps so that it would give some more clarity, but overall it was good project
Thank you! I'll keep that in mind for next time
Really Appreaciable Efforts. and thank you so much
You're most welcome! Thank you
Very good explanation. Thank you so much
Glad it was helpful!
This was a awesome video. Keep it up. expecting more content like this, Thanks
Thank you! We're working on more content like this.
Excellent video. Thank you very much sir!!
You're always welcome!
Really great demo, congratulations
Brilliant, thank you.
Very nice sir, I needed the bit on Jenkins and this helped... thanks a lot, pls make more videos, God bless
Thank you! You can also checkout the other videos on my related to Jenkins. I'll be making more videos soon
Very well explaining
Thank you Sir!!
Nicely explained and good project for beginners, thank you. Please do more videos like this and thank you again 🙏
Awesome work.... I'm a new subscriber.... Please do more projects on DevOps and troubleshooting series too
Thanks, will do!
successful completed the project and running perfect. I want to see another project using kubernetes
this is gem, now adding kubernetes to it would be awesome ;)
many thanks, amazing tuto, keep the good work!
Thank you!
Very good explanation.
Thank you so much, this was so damn helpful!
thank you !!! Very helpful for the beginner
I'm glad to hear that!
17:48 / Finished Jenkins part
32:39 / Finsihed Sonar part
Thanks a lot guy. May God reward you
great one sir
Thank you!
Thank you so much for the tutorial. I learned a lot!
From Viet Nam. Thanks ❤
Premium gold content
Outstanding... Clean and clear
Dhanyawad bhaiya awesome project
You're welcome! and Thank you
Very nice job thank for video
Thanks to you
thank you for doing this video.
You're welcome
your explanation was very cool and simple
Neat and Clean automation steps for beginners . Thanks folk
excellent sir...thank you
Great video. Thank you
Great job 👍👍👍👍
Thank you so much
Great ❤🎉
Thank you... It might be little complex implement using jenkinsfile
Yes, definitely
Great brother 👏
quality content bro🙂
Thank you bro
a great addition to this video would have been to quantify the costs of this CI/CD pipeline on AWS: How much would it cost to run it like on a daily/weekly/monthly basis on ? also would it fit on the AWS free tier ? if yes what would be the performance drawbacks ? it would be great to have the cost analysis part, maybe as a follow up video ?
You can use the AWS pricing calculator to calculate how much it's gonna cost you.
Sure. I'll make a video on it soon
This is incomparable. I read a book with similar content, and it was incomparable. "Mastering AWS: A Software Engineers Guide" by Nathan Vale
@49:35, I added "docker stop Onix-website" and next line "docker rm Onix-website" between 1st and 2nd line.
by doing this, everytime I changed anything in code, old container was stopped and deleted and a new image and a container was created with updated code. at browser all I have to do is refresh
Good job!
Im reoding this project,at 38:00 doing sudo su from Jenkins server into Docker
thanks for the resources
Thanks, this was really good
Assalamwalikum bhai, well explained , its crystal clear ...i expect this kind of videos on Azure Devops too.....
More videos will be coming soon! Especially on GCP and Azure Devops
good work
Nice sir❤
great content
Thank you, sir. Very well Explained.
You're welcome!
at 38:23 I am stuck as i cannot restart SSHD . error message appeared that sshd.service not found ? Help required
did you solve that? im having the same problem
I am also facing Same problem
sudo dnf install openssh-server
Im confused, so we are supposed to copy your code on your GIThub repository to pull it? Because you told us to make our own repositories
or we just clone it
Thanks for the video 😀. for future videos, kindly add timestamps for each step
Good idea! Thanks for the suggestion
Thanks nice expansion I was follow to create project and I am struck at after install Jenkins you copy key from website for linux but windows which key copy video 9:08 as showed
Please share key thanks in advance
great work
nice dear sir...
Thank you for this project! I have an issue in downloading the binaries of sonarqube when I right click to copy the link it just copies the "index.html" link. Anyone..how can I resolve this issue?
Click on the download button and when it starts download just right click on the download and copy the download link. You're welcome!
As a DevOps engineer, do i have to keep creating a new EC2 instance each and every time i have a CI/CD or deployment task to do? because i understand that once we finish a Job we have to stop and terminate all the EC2 instances to avoid further charges? and doing this will change the IP address Now, what if i wanted to retain some settings on my Jenkins which i created on a different occasion and still want to use the setting for a new Job after a few days, I had to terminate that server that hosted the Jenkins
Useful video. Is it possible to deploy this kind of project within an on-premise environment?
Yes! Ofcourse it's possible to deploy this on premises
@@aareezasif Also, how can I gain hands on working experience with Jenkins in real life production environment if I dont have work experience working with Jenkins?
hi why its webhook is failing in my cases should i have to upload any ssh key ?