Sonar Jenkins plugin (v2.10+), triggering invalid data format warning in jenkins on boot

Product: SonarQube plugin for Jenkins
Affected version/s: v2.10 and v2.11 (SONARJNKINS)

Error observed:
Each time Jenkins is re-started, we are presented with a “You have data stored in an older format…” warning, since upgrading to the latest versions named above.

hudson.plugins.sonar.SonarGlobalConfiguration
SonarGlobalConfiguration	
CannotResolveClassException: hudson.plugins.sonar.SonarGlobalConfiguration$$Lambda$94/1800822649

I found a similar report of this in the Git comments, which can be found here:

For reference, here is my sonarGlobalConfiguration.xml file:

<?xml version='1.1' encoding='UTF-8'?>
<hudson.plugins.sonar.SonarGlobalConfiguration plugin="sonar@2.10">
  <jenkinsSupplier class="hudson.plugins.sonar.SonarGlobalConfiguration$$Lambda$94/1800822649"/>
  <installations>
    <hudson.plugins.sonar.SonarInstallation>
      <name>sonar-dev</name>
      <serverUrl>https://my-sonar-url</serverUrl>
      <credentialsId>sonar</credentialsId>
      <webhookSecretId></webhookSecretId>
      <mojoVersion></mojoVersion>
      <additionalProperties></additionalProperties>
      <additionalAnalysisProperties></additionalAnalysisProperties>
      <triggers>
        <skipScmCause>false</skipScmCause>
        <skipUpstreamCause>false</skipUpstreamCause>
        <envVar></envVar>
      </triggers>
    </hudson.plugins.sonar.SonarInstallation>
  </installations>
  <buildWrapperEnabled>false</buildWrapperEnabled>
  <dataMigrated>true</dataMigrated>
  <credentialsMigrated>true</credentialsMigrated>
</hudson.plugins.sonar.SonarGlobalConfiguration>

Workarounds - You can click ‘dismiss’ in the Jenkins UI, but then on reboot, the error will return. I guess you could also downgrade to earlier plugin version.

I’m also facing this issue.

Hi @markm22 and @joliveira,

Thanks for the detailed explanation, the issue has been identified we will start working on a fix soon.
You can follow the progress on this ticket.

Sorry for the delay,
Tom

it is not Version problem,i have Solve the problem,jenkins Prepare SonarQube Scanner environment must true

Status of the ticket now shows as resolved but there is no fix version mentioned.

Thanks for letting us know. I’ve assigned a version to it - it hasn’t been released yet.