From the point I added first project to my org, I cannot see pull requests analized separately, though all other information is present there. Screenshot attached.
No errors. There was a quality gate check error first time when I added sonar and created pr, but then it started to work fine
in logs I see(not sure if its related)
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=235ms
On pr page it says:
Code Quality:
Not analyzed on SonarCloud yet…
No widget is shown either
The end of scanner logs:
ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=myProjectKey
. No &branch or &pullRequest in url for merge and pr
Can you please help/suggests what the issue can be? Since I have tried everything I know. Thanks in advance
clone:
depth: full
definitions:
caches:
sonar: .sonar/cache
scripts:
- script: &setup-env-vars
|
[ -f './env_vars' ] && cat ./env_vars && source ./env_vars;
steps:
- step: &sonarcloud-scanner
name: sonarcloud-scanner
clone:
depth: full
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:2.0.0
variables:
EXTRA_ARGS: >
-Dsonar.projectKey=my_project
-Dsonar.organization=my_org
-Dsonar.sources=py_modules
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.exclusions=py_modules/**/tests/**
- step: &sonarcloud-quality-gate-check
name: sonarcloud-quality-gate-check
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6
pipelines:
pull-requests:
'**':
- step:
<<: *sonarcloud-scanner
# condition:
# changesets:
# includePaths:
# - 'py_modules/**'
- step:
<<: *sonarcloud-quality-gate-check
# condition:
# changesets:
# includePaths:
# - 'py_modules/**'
branches:
main:
- step:
<<: *setup-vars
- step:
<<: *sonarcloud-scanner
# condition:
# changesets:
# includePaths:
# - 'py_modules/**'
- step:
<<: *sonarcloud-quality-gate-check
# condition:
# changesets:
# includePaths:
# - 'py_modules/**'
- ALM used Bitbucket Cloud
- CI system used Bitbucket Cloud
- Languages of the repository python, docker