Hi, all. How can I fix this issues in Sonarqube? Usually, I imported project from Gitlab to Sonarqube and it displayed Analysis Method in Sonarqube dashboard. But when other project that I imported from Gitlab to Sonarqube and it displayed like “main” branch has not been analyzed yet. in Sonarqube dashbaord? Please help me to solve out of this problem cause I want it work normally.
Excuse me, does anyone know the key to fix this out?
Hi,
Welcome to the community!
Note that this is a community, and per the FAQ, you’re asked to
- Wait a few days before bumping a topic that hasn’t received a response.
You’re saying that normally after importing a project, from GitLab, the UI gives you help on setting up analysis, but this time you’re getting this message?
If you check the dropdown at the top that says “main” in your screenshot, I believe you’ll find that some branch other main
has been analyzed. So probably analysis is already set up in your pipeline and there just hasn’t been a change to main
yet to trigger its analysis.
HTH,
Ann
Hello Madam @ganncamp I’ve been changed it to “main” branch already but it still the same issues like before. Actually, when I imported project from gitlab to Sonarqube it show like this as below.
→ Opposite, I imported another project it show like this as below:
This shocked me up, and I dunno how to fix it as well. Additionally, I really need your help to fix this issues, Madam.
Best Regard,
Kong KEAT
Hi Kong,
In the obp-service
project, what shows up in the main
dropdown?
Ann
Hi, Ann.
In the obp-service
project, it did not shows up anythings and I can’t click on it at all. Additionally, it still show main branch has not yet been analysis yet
. Can you tell me some tips to fix it?
*Note: Importing new project says, ‘main’ branch has not been analyzed yet
Best Regard,
Kong
Hi Kong,
Have you tried running analysis of your main
branch?
If you’re stuck on not having the wizard walk you through analysis setup, you could just copy the configuration from another project.
HTH,
Ann
Hello Ann,
Yes, I do. But it still shows the same as before. To be honest, for the Aura project, it easily displays the analysis method, and I can integrate it with GitLab easily. On the other hand, the obp-service project was also newly imported from GitLab, but it does not show results like the Aura project. I have been trying to fix it for weeks, but I still haven’t found a solution. Furthermore, Ann, what is the root cause of this issue? Does it come from configuration settings or something else?
Best Regars,
Kong KEAT
Hi Kong,
Are you saying you’ve analyzed the main branch and you still see this?
Also, what version of SonarQube are you running? If you’re not sure, you can find it in the page footer.
Thx,
Ann