Configure Java and Terraform in Global Tool Configuration --> Go to Manage Jenkins → Tools → Install JDK(17) → Click on Apply and Save
Tools → Terraform -> Apply and save.
Configure Sonar Server in Manage Jenkins --> Grab the Public IP Address of your EC2 Instance, Sonarqube works on Port 9000, so :9000. Goto your Sonarqube Server. Click on Administration → Security → Users → Click on Tokens and Update Token → Give it a
name → and click on Generate Token.
copy Token → Goto Jenkins Dashboard → Manage Jenkins → Credentials → Add Secret Text. It should look like this
The Configure System option is used in Jenkins to configure different servers → Global Tool Configuration is used to configure different tools that we install using → Plugins We will install a sonar scanner in the tools.
In the Sonarqube Dashboard add a quality gate also Administration → Configuration → Webhooks → Click on Create → Add details
<http://jenkins-public-ip:8080>/sonarqube-webhook/
Task 3 - Install Plugins like JDK, Sonarqube Scanner, Terraform
<http://jenkins-public-ip:8080>/sonarqube-webhook/