Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 820 Bytes

sonarqube_demo.md

File metadata and controls

24 lines (16 loc) · 820 Bytes

Including SonarQube in your Jenkins project

To test this, make your own HelloWorld project with some atrocious bugs, or use a project that gives results without trying too hard, e.g.:

Again, fork someone else's repo if you need to modify it.

  1. (Do basic Jenkins job setup)
  2. If Java, add a build step first; SonarQube scans class files rather than source code
  3. Add Build Step: Execute SonarQube Scanner: Analysis properties:
    1. sonar.ProjectKey=[project name with no spaces]
    2. sonar.language=[Main language used]
    3. (Leave everything else as is)
  4. Click Save

Back on project page, click Build Now.

Results: Project page > SonarQube link

To watch progress: click build > Console Output





Next slide