Sonarqube integration with selfhosted gitlab

Hello,

I am facing issue while integrate self hosted gitlab in sonarqube community edition.
Self hosted gitlab URL - https://codelab.techextensor.com
Sonarqube Community Edition - 161.97.108.178:9000

Can you please help me to integrate sonarqube with self hosted gitlab

Hey there.

What happens when you add a personal access token and save the configuration?

Could not validate GitLab url. Got an unexpected answer.
please check

Are there any log messages in your SonarQube installation directory’s logs/web.log file about the connection?

here I am attached web.log file
please check

Thanks!
web.log (22.1 KB)

Hey there.

It’s also your job to look at the logs and do some investigation work. :slight_smile: This is not a Support Desk.

2022.12.15 15:39:05 INFO  web[AYTDYvOWjRuUB4Y7AAbv][o.s.a.c.g.GitlabHttpClient] Gitlab API call to [https://codelab.techextensor.com/api/v4/projects] failed with error message : [PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

If this certificate installed on your GitLab server isn’t trusted by the JVM installation on your server (SSLPoke is a great tool for testing this), you’ll need to update the truststore being used by the Java installation that runs your SonarQube server to trust this certificate. This blog might help you out.

Thank You so much its working

1 Like

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