Sonarqube component name changes automatically

Hi ,

May be a simple question , i dont have an reason .

My angular application on azure devops having a wrong project name in sonarqube dashboard, in the publish task as you see below sonar.projectName":“myathlon-angular " is my project name for some reason in the below it has changed is componentName”:"athlon-ccoe-Azure1.

Not sure why , i want my project name to be myathlon-angular in the dashboard ,

Logs below from azure publish task , thanks

SONARQUBE_SCANNER_PARAMS={"sonar.host.url":"https://daiscs01.devcloud.corpinter.net/","sonar.projectKey":"7a54d18f-a4a4-4fff-ab24-bf83428f59d9-myathlon-angular","sonar.projectName":"myathlon-angular","sonar.projectVersion":"20220204.5","sonar.sources":"/var/build/Ubuntu0201/_work/99/s","sonar.branch.name":"azure","sonar.scanner.metadataFilePath":"/var/build/Ubuntu0201/_work/_temp/sonar/20220204.5/42441b3f-bcfb-9b63-286e-c9b8a06849cd/report-task.txt"}

serverUrl=[https://daiscs01.devcloud.corpinter.net](https://daiscs01.devcloud.corpinter.net/)

serverVersion=9.2.4.50792

branch=azure

dashboardUrl=https://daiscs01.devcloud.corpinter.net/dashboard?id=7a54d18f-a4a4-4fff-ab24-bf83428f59d9-myathlon-angular&branch=azure

ceTaskId=AX7EuG9WFVIFAf1uqwTW

ceTaskUrl=https://daiscs01.devcloud.corpinter.net/api/ce/task?id=AX7EuG9WFVIFAf1uqwTW


2022-02-04T12:32:21.8518836Z ##[debug]Response: 200 Body: "{"task":{"id":"AX7EuG9WFVIFAf1uqwTW","type":"REPORT","componentId":"AX7EWWl5FVIFAf1uqwRD","componentKey":"7a54d18f-a4a4-4fff-ab24-bf83428f59d9-myathlon-angular","componentName":"athlon-ccoe-Azure1","componentQualifier":"TRK","status":"IN_PROGRESS","submittedAt":"2022-02-04T12:32:08+0000","submitterLogin":"devadm","startedAt":"2022-02-04T12:32:09+0000","executionTimeMs":12484,"branch":"azure","branchType":"BRANCH","warnings":[]}}"

Hi @dilip. I’m guessing you are using the SonarQube Azure DevOps extension.

  • Is that correct, and if so which version?
  • which “scanner mode” are you using - msbuild, cli or other ?

Also, could you shared the verbose logs for the Run Code Analysis step please? (to generate the verbose logs, pass sonar.verbose=true in the Additional properties of the Prepare Analysis step).

Thanks.

Thanks Duncan , this is some how fixed by itself but to answer you question .

yes i use azure devops
i use cli scanner mode

Thanks

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