Check DevOps Platform Integration

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube 9.9.1.69595
  • how is SonarQube deployed: zip, Docker, Helm
    AWS ECS (container)
  • what are you trying to achieve
    I get this error logged at each analysis
Failed to report status to Devops platform: couldn't get the branch details. Contact your SonarQube administrator to check the server logs.
  • what have you tried so far to achieve this
    I have checked logs and it hasn’t really told me much more. I am not sure what this devops platform is that it is referring to. We use github for adding all of our projects and everything seems to be working right, but I am trying to resolve errors. We have never set up an azure devops integration or anything and I am not finding any information about why we are seeing this error.
    Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

these are the most relevent logs I can find

|`6/19/2023, 12:11:20 PM MST`|`2023.06.19 19:11:20 WARN ce[AYjVDl6RuNOZsXd7fklT][c.s.G.D.G.M] Branch decoration failed`|sonarqube|
| --- | --- | --- |
|`6/19/2023, 12:11:20 PM MST`|`java.lang.IllegalStateException: Failed to report status to Devops platform: couldn't get the branch details`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.M.B(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.M.D(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.Optional.orElseThrow(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.M.C(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.M.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.B.A.D.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.B.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.lang.Iterable.forEach(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.G.B.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.j.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.async.SynchronousAsyncExecution.addToQueue(SynchronousAsyncExecution.java:27)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.j.A(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.Optional.ifPresent(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.sonarsource.G.D.j.finished(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(PostProjectAnalysisTasksExecutor.java:102)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(PostProjectAnalysisTasksExecutor.java:93)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(ComputationStepExecutor.java:89)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:61)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.concurrent.FutureTask.run(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`at java.base/java.lang.Thread.run(Unknown Source)`|sonarqube|
|`6/19/2023, 12:11:20 PM MST`|`2023.06.19 19:11:20 INFO ce[AYjVDl6RuNOZsXd7fklT][o.s.c.t.p.a.p.PostProjectAnalysisTasksExecutor] Report branch Quality Gate status to devops platforms | status=SUCCESS | time=2162ms`|

Hi,

Your code lives in GitHub, right?

It looks like with each PR analysis the server is trying to automatically report the PR status back to GitHub and failing. This is additional, optional functionality, so you could safely ignore this. Or, you could fully configure the relationship between GitHub and SonarQube to get this set up. There’s global configuration and then project-level configs. The docs will get you started.

 
HTH,
Ann

Thanks. I’ll look in to the github integration

1 Like


I have one more piece to this puzzle. These errors only started after upgrading from the previous lts version to 9.9.1 After the upgrade we have noticed that in several places all throughout sonarqube we see title glitches where titles are displaying as dot notation references. I suspect that these 2 issues may be related as everything looks right in the github app configuration, but the titles are displaying funny on that configuration page as well. Do you know what may be causing this and how I would go about fixing it?

Hi,

The translation glitches are a red herring. They’re caused by a plugin. I forget which one, but take a look at the plugins you’re running.

To straighten out the problem in your OP, you should start from the global configuration mentioned in the docs I linked to.

 
Ann

1 Like