# How to Integrate SonarQube with Bitbucket Pipelines

> To integrate SonarQube with your pipeline in Bitbucket, navigate to Pipelines, select the target pipeline, view configuration, and edit it. Next, add the SonarQube pipe from the Configure tab, copy and paste its script into the code panel, commit your changes, and confirm with a commit message.

Canonical: https://livedemo.ai/tutorials/how-to-integrate-sonarqube-with-bitbucket-pipelines/
Apps: Bitbucket
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a4613ab56e05a00ff0839/preview?step=1

## Steps

1. Navigate to the left-side panel, then click 'Pipelines'.
2. Choose the specific pipeline you wish to integrate.
3. After that, tap the 'View Configuration' icon.
4. Click 'Edit' at the top-right corner.
5. Under the Configure tab, tap 'Add Pipes (Integrations)'.
6. Search for 'SonarQube' and choose the integration you prefer to use. Subsequently, click the 'Copy Script' icon next to it.
7. Click the code panel and paste the snippet.
8. Once done, tap 'Commit'.
9. Next, add a short commit message and click 'Commit' once again to proceed.
10. After completing these steps, the selected Bitbucket pipeline will be integrated instantly with SonarQube.
