Mercurial support in SonarQube 10.2.1

I’m seeing the below in the console output of a test Jenkins build:

“SCM provider was set to “hg” but no SCM provider found for this key. Supported SCM providers are git,svn”

Context: I’m looking at converting our existing structure running SonarQube Version 6.7.4 (build 38452) with Mercurial (hg). I have an instance of SonarQube Community EditionVersion 10.2.1 which I’m starting to try to manually migrate our Projects into.
My Jenkins version is 2.303.3.

On setting up my first Project in 10.2.1 at the “Analyze your project with Jenkins” step I’m only given the DevOps platform options Bitbucket Cloud, Bitbucket Server, GitHub or GitLab. Is Mercurial not supported?

There is a community supported plugin for mercurial that nobody is maintaining at the moment (and I’m not sure if it’s compatible with SonarQube 10.2). Still – worth a shot! Otherwise, for such projects you’ll need to disable SCM information (sonar.scm.disabled=true)

1 Like

Many thanks for the speedy reply, Colin. I managed to get a clean build by following your suggestion to disable SCM information. I’ll do some further checking on the plugin.