The SonarQube Cloud scan continuously fails on one of my repos.
Analysis status
Last analysis failed Analysis ID “AZc0YryzxBtj94djNLtI”
The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum and provide the following failing analysis ID: “AZc0YryzxBtj94djNLtI”.
Hi,
I’m not able to get the exact timeline, Since around September 2022, the SonarCloud scan has stopped analyzing the main branch for one of our Angular projects, although it continues to work correctly for PRs.
We are running the SonarCloud scan through a GitHub Action, and there are no errors in the logs. The logs shows:
ANALYSIS SUCCESSFUL, you can find the results at: SonarQube Cloud
I’m not sure if this is a recent issue, but when I clicked on “the last analysis has failed” yesterday it showed one AZc0YryzxBtj94djNLtI, and today it shows a different one: “AZc65ZhdQuq84fTWg6zO.”
The last analysis was shown as done 2.5 years ago, we haven’t used SonarCloud for the past 1 year. Now that we’re trying to use it again, the analysis report isn’t appearing for the main branch.
Yes, the GitHub Actions logs show that the analysis ran successfully, but there’s no update on the SonarCloud dashboard. I also made sure I was logged into SonarCloud when accessing the link, but it displays this error message:
I could not find the Analysis IDs you provided. Could you please fetch the analysis ID, taking it from your GitHub action logs? You should see a call to sonarcloud.io at the end of the logs similar to this:
More about the report processing at https://sonarcloud.io/api/ce/task?id=xxxxxxxx
Also please share a timestamp of that line.
Thanks!
You should be able to see this error message in the project’s background task:
Project or branch in report (xxxxxx) does not match the project or branch under which it was submitted (xxxxxx:BRANCH:main)
You should be able to find more posts for that error on the community forum, that should help you resolving this issue. For example, this one could be of interest.