When decorating a Bitbucket monorepo PR, SonarQube creates a report object in bitbucket, with a suffix and the SQ Project Key.
Since a SQ Project key can have 400 characters, the resulting report key may be too long for Bitbucket
- Bitbucket Server limits this key to 50 characters.
- Bitbucket Cloud limits this key to 40 characters
Therefore, PR decoration will fail.
SONAR-15054 we are showing users a warning to explain to them why Pull Request decoration will fail in this cases.
However, we should fix this problem and let users have their Monorepo PRs decorated in Bitbucket.
We should decouple the Report Key generation from the SQ Project Key, to make sure it will meet the Bitbucket length limits.