We are using SonarQube Community Edition integrated with Bitbucket (Stash). Our Jenkins pipeline triggers a SonarQube analysis whenever a pull request is created.
At the moment, the pipeline performs a full product build before running the analysis, which introduces significant delays in our CI/CD process.
Could you please clarify:
Is it possible to run a pull-request analysiswithout performing a full build?
Can Jenkins be configured to analyze only the PR changes (incremental scope) instead of building the entire product?
Is this supported in Community Edition, or is a higher edition required?
For context (if helpful):
SonarQube version: Community Edition Version 8.9.10 and Community Build v25.7.0.110598
is it possible to run any analysis without performing a full build?
And say “it depends”. For Java, C#, C, C++ and Objective-C you’re going to have to do a build. The reasons vary slightly between languages, but it’s easiest to just say yes, you have to build.
As Colin mentioned, Community Build doesn’t support PR analysis, so I assume you’re analyzing the underlying branch as a new project each time. Once you upgrade to a paid edition, you’ll still need to do a full build (depending on language) but your PR analyses will be incremental.