We noticed that the analysis we make on the projects doesn’t get reflected on the results

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Community Edition - Version 9.9 (Build 65466)

  • how is SonarQube deployed: zip, Docker, Helm
    Zip

  • what are you trying to achieve
    We noticed that the analysis we make on the projects doesn’t get reflected on the results.
    For example:

The last analysis was from 20 hours, while if we open details, then we find the last analysis was on April. This happened on multiple projects

I don’t find any warnings or errors in logs (sonar, es, ce, web)
just below warning in nohup

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube-9.9.0.65466/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.08.23 05:16:51 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2023.08.23 05:16:51 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[COMPUTE_ENGINE] from [/opt/sonarqube-9.9.0.65466]: /usr/lib/jvm/java-17-openjdk-17.0.6.0.9-0.3.ea.el8.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube-9.9.0.65466/temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.9.0.65466.jar:/opt/sonarqube-9.9.0.65466/lib/jdbc/postgresql/postgresql-42.5.1.jar org.sonar.ce.app.CeServer /opt/sonarqube-9.9.0.65466/temp/sq-process5949692630839068242properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/opt/sonarqube-9.9.0.65466/lib/sonar-application-9.9.0.65466.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.08.23 05:16:55 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2023.08.23 05:16:55 INFO  app[][o.s.a.SchedulerImpl] SonarQube is operational 
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

Do you see the analysis in your project’s background tasks (Project Settings > Background Tasks) – or as having been processed in your server’s ce.log?

Yes I see warning

The token used for this analysis will expire on .....
Your project contains only TEST-code for language C# and no MAIN-code for any language, so only TEST-code related results are imported. Many of our rules (e.g. vulnerabilities) are raised only on MAIN-code. Read more about how the SonarScanner for .NET detects test projects: https://github.com/SonarSource/sonar-scanner-msbuild/wiki/Analysis-of-product-projects-vs.-test-projects
Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to [the documentation](https://docs.sonarqube.org/9.9/analyzing-source-code/scm-integration/).

and
Scanner Context

Well, the analysis certainly got submitted.

Let’s come back to those warnings later. Is this an analysis of the main branch? Could the results in fact be showing up under Branches or Pull Requests in your project?

Yes, its analysis of Main Branch

and even when i create main branch to check the analysis , i don’t find the results updated

it always open old analysis.

when we create a project there is an option to change the name of the branch, but after creation there is no option to change it

I added the following to the projects, it is “true” for test projects and “false” from others

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.