-
ALM used Bitbucket Cloud
-
CI system used Bitbucket Cloud
-
Languages of the repository : Ts/Python
-
Issue :: PR analysis is working correctly but main branch isn’t analyzed on merge.
-
Long-lived branches pattern: main
-
Pipeline Used :
image: atlassian/default-image:2 clone:* depth: full definitions: services: docker: memory: 3000 caches: sonar: ~/.sonar/cache steps: - step: &build-test-sonarcloud name: Running SAST Analysis caches: - sonar services: - docker script: - pipe: sonarsource/sonarcloud-scan:4.0.0 variables: SONAR_TOKEN: ${SONAR_TOKEN} SONAR_SCANNER_DOCKER_IMAGE: “” EXTRA_ARGS: >- *-Dsonar.organization=${SONAR_ORG}* *-Dsonar.projectKey=${SONAR_PROJECT_KEY}* *-Dsonar.sources=${SONAR_ENTRY_PATH}* *-Dsonar.verbose=true* - step: &check-quality-gate-sonarcloud name: Checking Quality Gate on SonarCloud script: - pipe: sonarsource/sonarcloud-quality-gate:0.1.6 pipelines: branches: main: - step: *build-test-sonarcloud - step: *check-quality-gate-sonarcloud pull-requests: “**”: - step: *build-test-sonarcloud - step: *check-quality-gate-sonarcloud
Hi,
We’re not the experts in Bitbucket Pipelines configuration. (For that, you’ll have to ask the BB folks
.)
And SO is telling me that might not be the way you configure steps for a particular branch.
HTH,
Ann
Hi Ann, this is the pipeline mentioned in Administration / Analysis Method / Analyze a project with Bitbucket Pipelines in SonarCloud.
Hi,
Sorry, but this really isn’t our area of expertise.
Ann

