- ALM used: Bitbucket Cloud
- CI system used: Bitbucket Pipelines
Hi,
When analyzing one of our older long-lived branches, I’m getting the following error in Bitbucket Pipelines:
Quality Gate failed: Could not fetch quality gate status: b'{"errors":[{"msg":"Analysis with id \'None\' is not found"}]}'
A closer look at the analysis details gives me this error:
Invalid new code period. '21.03' is not one of: integer > 0, date before current analysis j, \"previous_version\", or version string that exists in the project.
The new code definition is set to the version 21.03, and this version exists in the project. I’m not sure why I’m getting this error, claiming that the version string does not exist?
This happens when doing analysis on our 21.02 branch (one version earlier), and I’m getting the message in SonarCloud that I should set a new code definition for this long-lived branch. However, It seems that I can only set a new code definition for the whole project, and not for a single long-lived branch. The new code definiton (project-wide) has already been set to 21.03.
I realise that the idea of setting a new code definition on a version that’s more recent than the current version is not correct. Is it possible that I’m just missing where I can set a new code definition for a specific long-lived branch?
Any help would be welcome!