This repository contains code that will automate testing and deployment of a webpage.
Steps
Step1: Push the website code to github repository.
Step2: Launch three EC2 VMs on AWS. (instance type t2.medium)
1 for Jenkins server
2 for Sonraqube server
3 for Docker server
Step3: SSH into jenkins server and install openjdk11 and jenkins.
Login to Jenkins.
Create a freestyle project and mention the git repository in the source code management section. Enable webhook.
Step4: SSH into sonarque server and intall openjdk17 and sonarqube.
Login to the sonarqube page and setup the project. Copy project key and scanner token.