We’re using SonarQube EE version 7.9.4 with the following project level settings:
- “New code period” definition as Reference branch for develop
- Main branch - develop
The common practice at org is to create pull requests with base develop for anything that needs to go to prod.
So, we started using sonar pull request analysis for pull requests with reference branch as develop, which is working fine.
But for develop branch, we use normal analysis, which is throwing the following error:
Invalid new code period. 'develop' is not one of: integer > 0, date before current analysis j, \"previous_version\", or version string that exists in the project' Please contact a project administrator to correct this setting