SpringBootWithSonarQube
- Create empty repo in github.
- clone repo in local laptop/machine
- create simple project in that git cloned folder.
- In my case I created spring boot project.
- push project on github.
- In my case I used "team" feature from eclipse.
- go to create accound on SonarQube cloude.
- I created own manually org and simple project.
- Copy code from SonarQube and paste in pom.xml in property section.
- copy credentials and paste in repo security access variables/token.
- copy yml file from SonarQube and create directory in repo inside .github/workflows/
- Then above yml will be reflect in github actions tab.
- I adjusted my navigation path in yml file beacuse system was not able to find pom file.
-
- SonarQube in Master branch was setup!
- I deleted main branch and renamed "Master" to "main" so sonarqube accessing my main branch! This was needed because "main" branch for subscription is needed! LOL
- Then observe in SonarQube UI.
- Note: keep pull/push from eclipse so both should be in sync!
-
- Happy Coding!