SonarQube version: 9.6
Gradle plugin: “3.4.0.2513”
We use sonarqube for pull request decorations and we have developer edition license. SonarQube is running in our internal office server (cannot be accessed from outside). We run code analysis on kotlin code.
We have set up jenkins multibranch pipeline which launches sonarqube job.
It successfully notifies bitbucket, that it started it’s work and successfully notifies about job finished. But if there are any issues, not only we do not get any PR comments, but there is no report attached, where we could see what went wrong.
In sonarqube logs I can see:
Bitbucket Cloud API call to [https://api.bitbucket.org/2.0/repositories/sxxxxx/xxxxx-android/commit/fkdsfjlskfjdskfjsdlkfjsdkdfjsdklfjdlskjfskljf/reports/SonarQube ] failed with 400 http code. Bitbucket Cloud response content : [{“key”: “report-service.general.bad-request”, “message”: “log_url is not a valid URL”, “arguments”: {}}]
What could be the problem?
Colin
(Colin)
September 27, 2022, 8:41am
#2
Hey there.
Thanks for the report.
Is there any chase that the log message refers to logo_url
rather than log_url
and the o
got lost in posting the logs, or does it really say log_url
?
No, error is always the same.
Colin
(Colin)
September 27, 2022, 12:09pm
#6
Thanks.
Can you check how sonar.core.serverbaseurl
is configured in your instance-level Adminstration , is it set to a valid value?
It’s empty. Our server is not reachable from outside, so is there a point in providing this value? If so, what value should it be?
Also, here’s a little bit more from the log, though it looks like to be the same issue:
2022.09.29 05:02:32 INFO ce[AYOHn-9NZ8i6RRGWnTqH][o.s.a.c.b.b.BitbucketCloudRestClient] Bitbucket Cloud API call to [https://api.bitbucket.org/2.0/repositories/xxxxx/xxxxx-android/commit/asdfadsfsdafasdfasdfadsfsf/reports/SonarQube ] failed with 400 http code. Bitbucket Cloud response content : [{“key”: “report-service.general.bad-request”, “message”: “log_url is not a valid URL”, “arguments”: {}}]
2022.09.29 05:02:32 WARN ce[AYOHn-9NZ8i6RRGWnTqH][c.s.F.D.A.B.E] Failed to create Bitbucket Cloud Quality Report for commit SHA ‘asdfadsfsdafasdfasdfadsfsf’
Ok, it started to work. And if I press on sonarqube link in bitbucket, I’m properly redirected to our internal server. Thank you!
1 Like
Colin
(Colin)
September 30, 2022, 9:23am
#12
Thanks for the follow up! The experience should be better here, so I’ve flagged this for internal review.
1 Like
I created the improvement SONAR-17782 to make it explicit in the UI that a valid Server base URL is a prerequisite for a successful and smooth DevOps platform integration.
1 Like
system
(system)
Closed
December 26, 2022, 7:32am
#16
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.