Sonarqube issue with azure devops pipeline at SonarQubeAnalyze step

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    – SonarQube™ technology is powered by [SonarSource SA]
  • Data Center Edition
  • Version 7.9.4 (build 35981)

Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarQube server.
Version : 5.8.0
Author : sonarsource

java --version
java 18.0.2.1 2022-08-18
Java™ SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot™ 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)

  • what are you trying to achieve
    Trying to run the .NET core application and just want to run the code analysis and publish for all the project
  • what have you tried so far to achieve this

--------------------this is my pipeline-----------------
#This is for sonar QA link

  • task: SonarQubePrepare@5
    inputs:
    SonarQube: 'XXXX
    sonarlog.txt (106.5 KB)

    scannerMode: ‘MSBuild’
    projectKey: ‘XXX-SonarQube’
    projectName: ‘sonar.projectname’
    #extraProperties: ‘sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/coverage/coverage.opencover.xml’

  • task: VSBuild@1
    displayName: ‘Build All Solutions’
    inputs:
    solution: ‘$(solution)’
    vsVersion: ‘16.0’
    msbuildArgs: ‘/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=“$(build.artifactstagingdirectory)”’
    platform: ‘$(buildPlatform)’
    configuration: ‘$(buildConfiguration)’
    msbuildArchitecture: ‘x64’

  • task: SonarQubeAnalyze@5

  • task: SonarQubePublish@5
    inputs:
    pollingTimeoutSec: ‘300’

Could you please help here. The versions are getting confuse.
This pipeline is running self hosted agent windows server 2019(able to access my sonarqube internal URL from the server)
Just we wanted to run all the code analysis and publish to sonar project.

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.4 → 8.9.10 → 9.7.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.