Report not published to SonarCloud from Azure pipeline

I use SonarCloud to analyse my projects for different branches in our organization. Code base is stored in Azure DevOps. Used below tasks in my azure pipeline

  • task: SonarCloudPrepare@1
  • Ant task to run test cases
  • Ant task to run codecoverage
  • task: PublishCodeCoverageResults@1
  • task: SonarCloudAnalyze@1
  • task: SonarCloudPublish@1

Pipeline is same for two of the environments (Dev2, Dev3) but sonarcloud report is published only through dev3. report.xml file is generated on dev2 but not published to sonarcloud.

Below are the logs for successful Publish task

2023-02-20T15:22:13.4465046Z ##[section]Starting: Publish Quality Gate Result
2023-02-20T15:22:13.4538608Z ==============================================================================
2023-02-20T15:22:13.4538940Z Task         : Publish Quality Gate Result
2023-02-20T15:22:13.4539316Z Description  : Publish SonarCloud's Quality Gate result on the Azure Pipelines build result. To be used after the actual analysis.
2023-02-20T15:22:13.4539690Z Version      : 1.11.3
2023-02-20T15:22:13.4539912Z Author       : sonarsource
2023-02-20T15:22:13.4540354Z Help         : Version: 1.11.3. [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2023-02-20T15:22:13.4540825Z ==============================================================================
2023-02-20T15:22:13.4631835Z ##[debug]Using node path: C:\azagent\A1\externals\node10\bin\node.exe
2023-02-20T15:22:13.7481242Z ##[debug]agent.TempDirectory=C:\azagent\A1\_work\_temp
2023-02-20T15:22:13.7509638Z ##[debug]loading inputs and endpoints
2023-02-20T15:22:13.7524920Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-02-20T15:22:13.7541373Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-02-20T15:22:13.7544267Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-02-20T15:22:13.7547086Z ##[debug]loading INPUT_POLLINGTIMEOUTSEC
2023-02-20T15:22:13.7551529Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT
2023-02-20T15:22:13.7554142Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-02-20T15:22:13.7559928Z ##[debug]loaded 6
2023-02-20T15:22:13.7564637Z ##[debug]Agent.ProxyUrl=undefined
2023-02-20T15:22:13.7565363Z ##[debug]Agent.CAInfo=undefined
2023-02-20T15:22:13.7565932Z ##[debug]Agent.ClientCert=undefined
2023-02-20T15:22:13.7566491Z ##[debug]Agent.SkipCertValidation=undefined
2023-02-20T15:22:14.2721225Z ##[debug]SONARQUBE_SCANNER_PARAMS={"sonar.host.url":"https://sonarcloud.io/","sonar.organization":"organizationName","sonar.projectKey":"organizationName_Ecommerce","sonar.projectName":"Ecommerce","sonar.projectVersion":"1.0","sonar.sources":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin\\custom\\core\\org\\src","sonar.branch.name":"DEV-1408","sonar.scanner.metadataFilePath":"C:\\azagent\\A1\\_work\\_temp\\sonar\\20230220.1\\b1dc1d8a-cf04-11ef-b375-e00ea498d572\\report-task.txt","sonar.projectBaseDir":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin","sonar.java.binaries":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin\\custom\\core\\org","sonar.coverage.jacoco.xmlReportPaths":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\log\\jacoco\\report.xml","sonar.exclusions":"**/*Constants.java,**/*jalo/**/*.java,**/*Test*.java,**/*Test*.class,**/*Constants.class,**/*jalo/**/*.class","sonar.verbose":"true"}
2023-02-20T15:22:14.2727258Z ##[debug]SONARQUBE_ENDPOINT=***
2023-02-20T15:22:14.2728699Z ##[debug][SQ] API GET: '/api/metrics/search' with query "{"f":"name","ps":500}"
2023-02-20T15:22:14.8203105Z ##[debug]Response: 200 Body: "{"metrics":[{"id":"289","key":"new_technical_debt","type":"WORK_DUR","name":"Added Technical Debt"},{"id":"386","key":"analysis_from_sonarqube_9_4","type":"BOOL","name":"Analysis From SonarQube 9.4"},{"id":"78","key":"blocker_violations","type":"INT","name":"Blocker Issues"},{"id":"308","key":"bugs","type":"INT","name":"Bugs"},{"id":"4","key":"classes","type":"INT","name":"Classes"},{"id":"306","key":"code_smells","type":"INT","name":"Code Smells"},{"id":"347","key":"cognitive_complexity","type":"INT","name":"Cognitive Complexity"},{"id":"32","key":"comment_lines","type":"INT","name":"Comment Lines"},{"id":"239","key":"comment_lines_data","type":"DATA","name":"comment_lines_data"},{"id":"33","key":"comment_lines_density","type":"PERCENT","name":"Comments (%)"},{"id":"27","key":"class_complexity","type":"FLOAT","name":"Complexity / Class"},{"id":"38","key":"file_complexity","type":"FLOAT","name":"Complexity / File"},{"id":"28","key":"function_complexity","type":"FLOAT","name":"Complexity / Function"},{"id":"272","key":"complexity_in_classes","type":"INT","name":"Complexity in Classes"},{"id":"273","key":"complexity_in_functions","type":"INT","name":"Complexity in Functions"},{"id":"97","key":"branch_coverage","type":"PERCENT","name":"Condition Coverage"},{"id":"178","key":"new_branch_coverage","type":"PERCENT","name":"Condition Coverage on New Code"},{"id":"95","key":"conditions_to_cover","type":"INT","name":"Conditions to Cover"},{"id":"176","key":"new_conditions_to_cover","type":"INT","name":"Conditions to Cover on New Code"},{"id":"277","key":"confirmed_issues","type":"INT","name":"Confirmed Issues"},{"id":"20","key":"coverage","type":"PERCENT","name":"Coverage"},{"id":"172","key":"new_coverage","type":"PERCENT","name":"Coverage on New Code"},{"id":"79","key":"critical_violations","type":"INT","name":"Critical Issues"},{"id":"26","key":"complexity","type":"INT","name":"Cyclomatic Complexity"},{"id":"181","key":"last_commit_date","type":"MILLISEC","name":"Date of Last Commit"},{"id":"280","key":"development_cost","type":"STRING","name":"Development Cost"},{"id":"348","key":"new_development_cost","type":"FLOAT","name":"Development Cost on New Code"},{"id":"37","key":"directories","type":"INT","name":"Directories"},{"id":"51","key":"duplicated_blocks","type":"INT","name":"Duplicated Blocks"},{"id":"339","key":"new_duplicated_blocks","type":"INT","name":"Duplicated Blocks on New Code"},{"id":"52","key":"duplicated_files","type":"INT","name":"Duplicated Files"},{"id":"8","key":"duplicated_lines","type":"INT","name":"Duplicated Lines"},{"id":"34","key":"duplicated_lines_density","type":"PERCENT","name":"Duplicated Lines (%)"},{"id":"340","key":"new_duplicated_lines_density","type":"PERCENT","name":"Duplicated Lines (%) on New Code"},{"id":"338","key":"new_duplicated_lines","type":"INT","name":"Duplicated Lines on New Code"},{"id":"53","key":"duplications_data","type":"DATA","name":"Duplication Details"},{"id":"312","key":"effort_to_reach_maintainability_rating_a","type":"WORK_DUR","name":"Effort to Reach Maintainability Rating A"},{"id":"321","key":"executable_lines_data","type":"DATA","name":"executable_lines_data"},{"id":"274","key":"false_positive_issues","type":"INT","name":"False Positive Issues"},{"id":"154","key":"file_complexity_distribution","type":"DISTRIB","name":"File Distribution / Complexity"},{"id":"36","key":"files","type":"INT","name":"Files"},{"id":"59","key":"function_complexity_distribution","type":"DISTRIB","name":"Function Distribution / Complexity"},{"id":"6","key":"functions","type":"INT","name":"Functions"},{"id":"150","key":"generated_lines","type":"INT","name":"Generated Lines"},{"id":"151","key":"generated_ncloc","type":"INT","name":"Generated Lines of Code"},{"id":"82","key":"info_violations","type":"INT","name":"Info Issues"},{"id":"42","key":"violations","type":"INT","name":"Issues"},{"id":"94","key":"line_coverage","type":"PERCENT","name":"Line Coverage"},{"id":"175","key":"new_line_coverage","type":"PERCENT","name":"Line Coverage on New Code"},{"id":"55","key":"lines","type":"INT","name":"Lines"},{"id":"5","key":"ncloc","type":"INT","name":"Lines of Code"},{"id":"293","key":"ncloc_language_distribution","type":"DATA","name":"Lines of Code Per Language"},{"id":"92","key":"lines_to_cover","type":"INT","name":"Lines to Cover"},{"id":"173","key":"new_lines_to_cover","type":"INT","name":"Lines to Cover on New Code"},{"id":"163","key":"sqale_rating","type":"RATING","name":"Maintainability Rating"},{"id":"341","key":"new_maintainability_rating","type":"RATING","name":"Maintainability Rating on New Code"},{"id":"80","key":"major_violations","type":"INT","name":"Major Issues"},{"id":"81","key":"minor_violations","type":"INT","name":"Minor Issues"},{"id":"238","key":"ncloc_data","type":"DATA","name":"ncloc_data"},{"id":"165","key":"new_blocker_violations","type":"INT","name":"New Blocker Issues"},{"id":"309","key":"new_bugs","type":"INT","name":"New Bugs"},{"id":"307","key":"new_code_smells","type":"INT","name":"New Code Smells"},{"id":"166","key":"new_critical_violations","type":"INT","name":"New Critical Issues"},{"id":"169","key":"new_info_violations","type":"INT","name":"New Info Issues"},{"id":"164","key":"new_violations","type":"INT","name":"New Issues"},{"id":"337","key":"new_lines","type":"INT","name":"New Lines"},{"id":"167","key":"new_major_violations","type":"INT","name":"New Major Issues"},{"id":"168","key":"new_minor_violations","type":"INT","name":"New Minor Issues"},{"id":"351","key":"new_security_hotspots","type":"INT","name":"New Security Hotspots"},{"id":"311","key":"new_vulnerabilities","type":"INT","name":"New Vulnerabilities"},{"id":"275","key":"open_issues","type":"INT","name":"Open Issues"},{"id":"47","key":"quality_profiles","type":"DATA","name":"Profiles"},{"id":"240","key":"projects","type":"INT","name":"Project branches"},{"id":"58","key":"public_api","type":"INT","name":"Public API"},{"id":"61","key":"public_documented_api_density","type":"PERCENT","name":"Public Documented API (%)"},{"id":"62","key":"public_undocumented_api","type":"INT","name":"Public Undocumented API"},{"id":"294","key":"quality_gate_details","type":"DATA","name":"Quality Gate Details"},{"id":"48","key":"alert_status","type":"LEVEL","name":"Quality Gate Status"},{"id":"315","key":"reliability_rating","type":"RATING","name":"Reliability Rating"},{"id":"342","key":"new_reliability_rating","type":"RATING","name":"Reliability Rating on New Code"},{"id":"313","key":"reliability_remediation_effort","type":"WORK_DUR","name":"Reliability Remediation Effort"},{"id":"314","key":"new_reliability_remediation_effort","type":"WORK_DUR","name":"Reliability Remediation Effort on New Code"},{"id":"276","key":"reopened_issues","type":"INT","name":"Reopened Issues"},{"id":"350","key":"security_hotspots","type":"INT","name":"Security Hotspots"},{"id":"354","key":"security_hotspots_reviewed","type":"PERCENT","name":"Security Hotspots Reviewed"},{"id":"355","key":"new_security_hotspots_reviewed","type":"PERCENT","name":"Security Hotspots Reviewed on New Code"},{"id":"319","key":"security_rating","type":"RATING","name":"Security Rating"},{"id":"343","key":"new_security_rating","type":"RATING","name":"Security Rating on New Code"},{"id":"317","key":"security_remediation_effort","type":"WORK_DUR","name":"Security Remediation Effort"},{"id":"318","key":"new_security_remediation_effort","type":"WORK_DUR","name":"Security Remediation Effort on New Code"},{"id":"352","key":"security_review_rating","type":"RATING","name":"Security Review Rating"},{"id":"353","key":"new_security_review_rating","type":"RATING","name":"Security Review Rating on New Code"},{"id":"356","key":"security_hotspots_reviewed_status","type":"INT","name":"Security Review Reviewed Status"},{"id":"358","key":"new_security_hotspots_reviewed_status","type":"INT","name":"Security Review Reviewed Status on New Code"},{"id":"357","key":"security_hotspots_to_review_status","type":"INT","name":"Security Review To Review Status"},{"id":"359","key":"new_security_hotspots_to_review_status","type":"INT","name":"Security Review To Review Status on New Code"},{"id":"11","key":"skipped_tests","type":"INT","name":"Skipped Unit Tests"},{"id":"60","key":"statements","type":"INT","name":"Statements"},{"id":"162","key":"sqale_index","type":"WORK_DUR","name":"Technical Debt"},{"id":"297","key":"sqale_debt_ratio","type":"PERCENT","name":"Technical Debt Ratio"},{"id":"304","key":"new_sqale_debt_ratio","type":"PERCENT","name":"Technical Debt Ratio on New Code"},{"id":"96","key":"uncovered_conditions","type":"INT","name":"Uncovered Conditions"},{"id":"177","key":"new_uncovered_conditions","type":"INT","name":"Uncovered Conditions on New Code"},{"id":"93","key":"uncovered_lines","type":"INT","name":"Uncovered Lines"},{"id":"174","key":"new_uncovered_lines","type":"INT","name":"Uncovered Lines on New Code"},{"id":"14","key":"test_execution_time","type":"MILLISEC","name":"Unit Test Duration"},{"id":"10","key":"test_errors","type":"INT","name":"Unit Test Errors"},{"id":"12","key":"test_failures","type":"INT","name":"Unit Test Failures"},{"id":"13","key":"tests","type":"INT","name":"Unit Tests"},{"id":"15","key":"test_success_density","type":"PERCENT","name":"Unit Test Success (%)"},{"id":"310","key":"vulnerabilities","type":"INT","name":"Vulnerabilities"},{"id":"324","key":"wont_fix_issues","type":"INT","name":"Won't Fix Issues"}],"total":112,"p":1,"ps":500}"
2023-02-20T15:22:14.8222038Z ##[debug]pollingTimeoutSec=300
2023-02-20T15:22:14.8222746Z ##[debug][SQ] API GET: '/api/server/version' with query "undefined"
2023-02-20T15:22:15.1933054Z ##[debug]Response: 200 Body: "8.0.0.37873"
2023-02-20T15:22:15.1938373Z ##[debug]Build.BuildNumber=20230220.1
2023-02-20T15:22:15.1939089Z ##[debug]Agent.TempDirectory=C:\azagent\A1\_work\_temp
2023-02-20T15:22:15.1943822Z ##[debug]defaultRoot: 'C:\azagent\A1\_work\_temp'
2023-02-20T15:22:15.1944688Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-02-20T15:22:15.1945412Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-02-20T15:22:15.1946116Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-02-20T15:22:15.1946824Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-02-20T15:22:15.1947498Z ##[debug]matchOptions.debug: 'false'
2023-02-20T15:22:15.1948130Z ##[debug]matchOptions.nobrace: 'true'
2023-02-20T15:22:15.1948842Z ##[debug]matchOptions.noglobstar: 'false'
2023-02-20T15:22:15.1949579Z ##[debug]matchOptions.dot: 'true'
2023-02-20T15:22:15.1950243Z ##[debug]matchOptions.noext: 'false'
2023-02-20T15:22:15.1950871Z ##[debug]matchOptions.nocase: 'true'
2023-02-20T15:22:15.1951512Z ##[debug]matchOptions.nonull: 'false'
2023-02-20T15:22:15.1952150Z ##[debug]matchOptions.matchBase: 'false'
2023-02-20T15:22:15.1952794Z ##[debug]matchOptions.nocomment: 'false'
2023-02-20T15:22:15.1953464Z ##[debug]matchOptions.nonegate: 'false'
2023-02-20T15:22:15.1954125Z ##[debug]matchOptions.flipNegate: 'false'
2023-02-20T15:22:15.1954806Z ##[debug]pattern: 'sonar\20230220.1\**\report-task.txt'
2023-02-20T15:22:15.1977394Z ##[debug]findPath: 'C:\azagent\A1\_work\_temp\sonar\20230220.1'
2023-02-20T15:22:15.1978095Z ##[debug]statOnly: 'false'
2023-02-20T15:22:15.1978881Z ##[debug]findPath: 'C:\azagent\A1\_work\_temp\sonar\20230220.1'
2023-02-20T15:22:15.1979613Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-02-20T15:22:15.1980337Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-02-20T15:22:15.1981355Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-02-20T15:22:15.1982034Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-02-20T15:22:15.1989661Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230220.1 (directory)
2023-02-20T15:22:15.1999520Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230220.1\b1dc1d8a-cf04-11ef-b375-e00ea498d572 (directory)
2023-02-20T15:22:15.2004711Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230220.1\b1dc1d8a-cf04-11ef-b375-e00ea498d572\report-task.txt (file)
2023-02-20T15:22:15.2005503Z ##[debug]3 results
2023-02-20T15:22:15.2006073Z ##[debug]found 3 paths
2023-02-20T15:22:15.2006672Z ##[debug]applying include pattern
2023-02-20T15:22:15.2007417Z ##[debug]adjustedPattern: 'C:\azagent\A1\_work\_temp\sonar\20230220.1\**\report-task.txt'
2023-02-20T15:22:15.2021350Z ##[debug]1 matches
2023-02-20T15:22:15.2022059Z ##[debug]1 final results
2023-02-20T15:22:15.2023021Z ##[debug][SQ] Searching for sonar\20230220.1\**\report-task.txt - found 1 file(s)
2023-02-20T15:22:15.2024203Z ##[debug][SQ] Read Task report file: C:\azagent\A1\_work\_temp\sonar\20230220.1\b1dc1d8a-cf04-11ef-b375-e00ea498d572\report-task.txt
2023-02-20T15:22:15.2049302Z ##[debug][SQ] Parse Task report file: organization=organizationName
projectKey=organizationName_Ecommerce
serverUrl=https://sonarcloud.io
serverVersion=8.0.0.37873
branch=DEV-1408
dashboardUrl=https://sonarcloud.io/dashboard?id=organizationName_Ecommerce&branch=DEV-1408&resolved=false
ceTaskId=AYZvaw7GQRGG0isXdAHH
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AYZvaw7GQRGG0isXdAHH

2023-02-20T15:22:15.2055041Z ##[debug][SQ] Waiting for task 'AYZvaw7GQRGG0isXdAHH' to complete.
2023-02-20T15:22:15.2055851Z ##[debug][SQ] API GET: '/api/ce/task' with query "{"id":"AYZvaw7GQRGG0isXdAHH","additionalFields":"warnings"}"
2023-02-20T15:22:15.6070459Z ##[debug]Response: 200 Body: "{"task":{"id":"AYZvaw7GQRGG0isXdAHH","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","status":"IN_PROGRESS","submittedAt":"2023-02-20T16:22:12+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-20T16:22:12+0100","executionTimeMs":2731,"logs":false,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warnings":[]}}"
2023-02-20T15:22:15.6072325Z ##[debug][SQ] Task status:IN_PROGRESS
2023-02-20T15:22:16.6132106Z ##[debug][SQ] Waiting for task 'AYZvaw7GQRGG0isXdAHH' to complete.
2023-02-20T15:22:16.6133373Z ##[debug][SQ] API GET: '/api/ce/task' with query "{"id":"AYZvaw7GQRGG0isXdAHH","additionalFields":"warnings"}"
2023-02-20T15:22:17.0173554Z ##[debug]Response: 200 Body: "{"task":{"id":"AYZvaw7GQRGG0isXdAHH","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","status":"IN_PROGRESS","submittedAt":"2023-02-20T16:22:12+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-20T16:22:12+0100","executionTimeMs":4142,"logs":false,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warnings":[]}}"
2023-02-20T15:22:17.0175623Z ##[debug][SQ] Task status:IN_PROGRESS
2023-02-20T15:22:18.0193739Z ##[debug][SQ] Waiting for task 'AYZvaw7GQRGG0isXdAHH' to complete.
2023-02-20T15:22:18.0195036Z ##[debug][SQ] API GET: '/api/ce/task' with query "{"id":"AYZvaw7GQRGG0isXdAHH","additionalFields":"warnings"}"
2023-02-20T15:22:18.3951714Z ##[debug]Response: 200 Body: "{"task":{"id":"AYZvaw7GQRGG0isXdAHH","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","analysisId":"AYZvaxBIqpnuPFEMn7t7","status":"SUCCESS","submittedAt":"2023-02-20T16:22:12+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-20T16:22:12+0100","executedAt":"2023-02-20T16:22:17+0100","executionTimeMs":4345,"logs":false,"hasScannerContext":true,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warningCount":1,"warnings":["Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results."]}}"
2023-02-20T15:22:18.3954622Z ##[debug][SQ] Task status:SUCCESS
2023-02-20T15:22:18.3956950Z ##[debug][SQ] Task complete: {"id":"AYZvaw7GQRGG0isXdAHH","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","analysisId":"AYZvaxBIqpnuPFEMn7t7","status":"SUCCESS","submittedAt":"2023-02-20T16:22:12+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-20T16:22:12+0100","executedAt":"2023-02-20T16:22:17+0100","executionTimeMs":4345,"logs":false,"hasScannerContext":true,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warningCount":1,"warnings":["Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results."]}
2023-02-20T15:22:18.3959202Z ##[debug][SQ] Retrieve Analysis id 'AYZvaxBIqpnuPFEMn7t7.'
2023-02-20T15:22:18.3960101Z ##[debug][SQ] API GET: '/api/qualitygates/project_status' with query "{"analysisId":"AYZvaxBIqpnuPFEMn7t7"}"
2023-02-20T15:22:18.7710726Z ##[debug]Response: 200 Body: "{"projectStatus":{"status":"OK","conditions":[{"status":"OK","metricKey":"new_reliability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_security_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_maintainability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_security_hotspots_reviewed","comparator":"LT","periodIndex":1,"errorThreshold":"100","actualValue":"100.0"}],"periods":[],"ignoredConditions":false}}"
2023-02-20T15:22:18.7713059Z ##[debug][SQ] Generate analysis report.'
2023-02-20T15:22:18.7717202Z ##[debug]Number of analyses in this build: 1
2023-02-20T15:22:18.7717991Z ##[debug]**Overall Quality Gate status: ok**
2023-02-20T15:22:18.7726543Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/organizationName/
2023-02-20T15:22:18.7727439Z ##[debug]System.TeamProjectId=d61598ee-970a-421a-8062-10562ffd2748
2023-02-20T15:22:18.7728244Z ##[debug]Build.BuildId=28519
2023-02-20T15:22:18.7729002Z ##[debug][{"op":0,"path":"/sonarglobalqualitygate","value":"ok"}]
2023-02-20T15:22:18.7734619Z ##[debug]SYSTEMVSSCONNECTION exists true
2023-02-20T15:22:18.7738782Z ##[debug]SYSTEMVSSCONNECTION exists true
2023-02-20T15:22:18.7754533Z ##[debug]Acquiring a build API object.
2023-02-20T15:22:19.0712420Z ##[debug]Creating a new build property with global Quality Gate Status
2023-02-20T15:22:22.2231477Z ##[debug]build.artifactStagingDirectory=C:\azagent\A1\_work\2\a
2023-02-20T15:22:22.2258873Z ##[debug][SQ] Summary saved at: C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-20T15:22:22.2259830Z ##[debug][SQ] Uploading build summary from C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-20T15:22:22.2271480Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=SonarCloud Analysis Report;]C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-20T15:22:22.2356339Z ##[section]Finishing: Publish Quality Gate Result

Below are the logs for FAILED Publish task

2023-02-27T17:53:19.0945608Z ##[section]Starting: Publish Quality Gate Result
2023-02-27T17:53:19.1059613Z ==============================================================================
2023-02-27T17:53:19.1060103Z Task         : Publish Quality Gate Result
2023-02-27T17:53:19.1060519Z Description  : Publish SonarCloud's Quality Gate result on the Azure Pipelines build result. To be used after the actual analysis.
2023-02-27T17:53:19.1060893Z Version      : 1.11.3
2023-02-27T17:53:19.1061090Z Author       : sonarsource
2023-02-27T17:53:19.1062049Z Help         : Version: 1.11.3. [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2023-02-27T17:53:19.1062575Z ==============================================================================
2023-02-27T17:53:19.1197694Z ##[debug]Using node path: C:\azagent\A1\externals\node10\bin\node.exe
2023-02-27T17:53:19.5175824Z ##[debug]agent.TempDirectory=C:\azagent\A1\_work\_temp
2023-02-27T17:53:19.5215373Z ##[debug]loading inputs and endpoints
2023-02-27T17:53:19.5236125Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-02-27T17:53:19.5260789Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-02-27T17:53:19.5267269Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-02-27T17:53:19.5270795Z ##[debug]loading INPUT_POLLINGTIMEOUTSEC
2023-02-27T17:53:19.5277688Z ##[debug]loading SECRET_SONARQUBE_ENDPOINT
2023-02-27T17:53:19.5280481Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-02-27T17:53:19.5289069Z ##[debug]loaded 6
2023-02-27T17:53:19.5295365Z ##[debug]Agent.ProxyUrl=undefined
2023-02-27T17:53:19.5296068Z ##[debug]Agent.CAInfo=undefined
2023-02-27T17:53:19.5296918Z ##[debug]Agent.ClientCert=undefined
2023-02-27T17:53:19.5298460Z ##[debug]Agent.SkipCertValidation=undefined
2023-02-27T17:53:20.3531965Z ##[debug]SONARQUBE_SCANNER_PARAMS={"sonar.host.url":"https://sonarcloud.io/","sonar.organization":"organizationName","sonar.projectKey":"organizationName_Ecommerce","sonar.projectName":"Ecommerce","sonar.projectVersion":"1.0","sonar.sources":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin\\custom\\core\\org\\src","sonar.branch.name":"DEV-1408","sonar.scanner.metadataFilePath":"C:\\azagent\\A1\\_work\\_temp\\sonar\\20230227.1\\c3284177-9dc5-a390-f9a7-57aad12b94ca\\report-task.txt","sonar.projectBaseDir":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin","sonar.java.binaries":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\bin\\custom\\core\\org","sonar.coverage.jacoco.xmlReportPaths":"F:\\apps\\projects\\org\\dent-001\\Ecommerce\\hybris\\log\\jacoco\\report.xml","sonar.exclusions":"**/*Constants.java,**/*jalo/**/*.java,**/*Test*.java,**/*Test*.class,**/*Constants.class,**/*jalo/**/*.class","sonar.verbose":"true"}
2023-02-27T17:53:20.3542373Z ##[debug]SONARQUBE_ENDPOINT=***
2023-02-27T17:53:20.3543518Z ##[debug][SQ] API GET: '/api/metrics/search' with query "{"f":"name","ps":500}"
2023-02-27T17:53:20.9307574Z ##[debug]Response: 200 Body: "{"metrics":[{"id":"289","key":"new_technical_debt","type":"WORK_DUR","name":"Added Technical Debt"},{"id":"386","key":"analysis_from_sonarqube_9_4","type":"BOOL","name":"Analysis From SonarQube 9.4"},{"id":"78","key":"blocker_violations","type":"INT","name":"Blocker Issues"},{"id":"308","key":"bugs","type":"INT","name":"Bugs"},{"id":"4","key":"classes","type":"INT","name":"Classes"},{"id":"306","key":"code_smells","type":"INT","name":"Code Smells"},{"id":"347","key":"cognitive_complexity","type":"INT","name":"Cognitive Complexity"},{"id":"32","key":"comment_lines","type":"INT","name":"Comment Lines"},{"id":"239","key":"comment_lines_data","type":"DATA","name":"comment_lines_data"},{"id":"33","key":"comment_lines_density","type":"PERCENT","name":"Comments (%)"},{"id":"27","key":"class_complexity","type":"FLOAT","name":"Complexity / Class"},{"id":"38","key":"file_complexity","type":"FLOAT","name":"Complexity / File"},{"id":"28","key":"function_complexity","type":"FLOAT","name":"Complexity / Function"},{"id":"272","key":"complexity_in_classes","type":"INT","name":"Complexity in Classes"},{"id":"273","key":"complexity_in_functions","type":"INT","name":"Complexity in Functions"},{"id":"97","key":"branch_coverage","type":"PERCENT","name":"Condition Coverage"},{"id":"178","key":"new_branch_coverage","type":"PERCENT","name":"Condition Coverage on New Code"},{"id":"95","key":"conditions_to_cover","type":"INT","name":"Conditions to Cover"},{"id":"176","key":"new_conditions_to_cover","type":"INT","name":"Conditions to Cover on New Code"},{"id":"277","key":"confirmed_issues","type":"INT","name":"Confirmed Issues"},{"id":"20","key":"coverage","type":"PERCENT","name":"Coverage"},{"id":"172","key":"new_coverage","type":"PERCENT","name":"Coverage on New Code"},{"id":"79","key":"critical_violations","type":"INT","name":"Critical Issues"},{"id":"26","key":"complexity","type":"INT","name":"Cyclomatic Complexity"},{"id":"181","key":"last_commit_date","type":"MILLISEC","name":"Date of Last Commit"},{"id":"280","key":"development_cost","type":"STRING","name":"Development Cost"},{"id":"348","key":"new_development_cost","type":"FLOAT","name":"Development Cost on New Code"},{"id":"37","key":"directories","type":"INT","name":"Directories"},{"id":"51","key":"duplicated_blocks","type":"INT","name":"Duplicated Blocks"},{"id":"339","key":"new_duplicated_blocks","type":"INT","name":"Duplicated Blocks on New Code"},{"id":"52","key":"duplicated_files","type":"INT","name":"Duplicated Files"},{"id":"8","key":"duplicated_lines","type":"INT","name":"Duplicated Lines"},{"id":"34","key":"duplicated_lines_density","type":"PERCENT","name":"Duplicated Lines (%)"},{"id":"340","key":"new_duplicated_lines_density","type":"PERCENT","name":"Duplicated Lines (%) on New Code"},{"id":"338","key":"new_duplicated_lines","type":"INT","name":"Duplicated Lines on New Code"},{"id":"53","key":"duplications_data","type":"DATA","name":"Duplication Details"},{"id":"312","key":"effort_to_reach_maintainability_rating_a","type":"WORK_DUR","name":"Effort to Reach Maintainability Rating A"},{"id":"321","key":"executable_lines_data","type":"DATA","name":"executable_lines_data"},{"id":"274","key":"false_positive_issues","type":"INT","name":"False Positive Issues"},{"id":"154","key":"file_complexity_distribution","type":"DISTRIB","name":"File Distribution / Complexity"},{"id":"36","key":"files","type":"INT","name":"Files"},{"id":"59","key":"function_complexity_distribution","type":"DISTRIB","name":"Function Distribution / Complexity"},{"id":"6","key":"functions","type":"INT","name":"Functions"},{"id":"150","key":"generated_lines","type":"INT","name":"Generated Lines"},{"id":"151","key":"generated_ncloc","type":"INT","name":"Generated Lines of Code"},{"id":"82","key":"info_violations","type":"INT","name":"Info Issues"},{"id":"42","key":"violations","type":"INT","name":"Issues"},{"id":"94","key":"line_coverage","type":"PERCENT","name":"Line Coverage"},{"id":"175","key":"new_line_coverage","type":"PERCENT","name":"Line Coverage on New Code"},{"id":"55","key":"lines","type":"INT","name":"Lines"},{"id":"5","key":"ncloc","type":"INT","name":"Lines of Code"},{"id":"293","key":"ncloc_language_distribution","type":"DATA","name":"Lines of Code Per Language"},{"id":"92","key":"lines_to_cover","type":"INT","name":"Lines to Cover"},{"id":"173","key":"new_lines_to_cover","type":"INT","name":"Lines to Cover on New Code"},{"id":"163","key":"sqale_rating","type":"RATING","name":"Maintainability Rating"},{"id":"341","key":"new_maintainability_rating","type":"RATING","name":"Maintainability Rating on New Code"},{"id":"80","key":"major_violations","type":"INT","name":"Major Issues"},{"id":"81","key":"minor_violations","type":"INT","name":"Minor Issues"},{"id":"238","key":"ncloc_data","type":"DATA","name":"ncloc_data"},{"id":"165","key":"new_blocker_violations","type":"INT","name":"New Blocker Issues"},{"id":"309","key":"new_bugs","type":"INT","name":"New Bugs"},{"id":"307","key":"new_code_smells","type":"INT","name":"New Code Smells"},{"id":"166","key":"new_critical_violations","type":"INT","name":"New Critical Issues"},{"id":"169","key":"new_info_violations","type":"INT","name":"New Info Issues"},{"id":"164","key":"new_violations","type":"INT","name":"New Issues"},{"id":"337","key":"new_lines","type":"INT","name":"New Lines"},{"id":"167","key":"new_major_violations","type":"INT","name":"New Major Issues"},{"id":"168","key":"new_minor_violations","type":"INT","name":"New Minor Issues"},{"id":"351","key":"new_security_hotspots","type":"INT","name":"New Security Hotspots"},{"id":"311","key":"new_vulnerabilities","type":"INT","name":"New Vulnerabilities"},{"id":"275","key":"open_issues","type":"INT","name":"Open Issues"},{"id":"47","key":"quality_profiles","type":"DATA","name":"Profiles"},{"id":"240","key":"projects","type":"INT","name":"Project branches"},{"id":"58","key":"public_api","type":"INT","name":"Public API"},{"id":"61","key":"public_documented_api_density","type":"PERCENT","name":"Public Documented API (%)"},{"id":"62","key":"public_undocumented_api","type":"INT","name":"Public Undocumented API"},{"id":"294","key":"quality_gate_details","type":"DATA","name":"Quality Gate Details"},{"id":"48","key":"alert_status","type":"LEVEL","name":"Quality Gate Status"},{"id":"315","key":"reliability_rating","type":"RATING","name":"Reliability Rating"},{"id":"342","key":"new_reliability_rating","type":"RATING","name":"Reliability Rating on New Code"},{"id":"313","key":"reliability_remediation_effort","type":"WORK_DUR","name":"Reliability Remediation Effort"},{"id":"314","key":"new_reliability_remediation_effort","type":"WORK_DUR","name":"Reliability Remediation Effort on New Code"},{"id":"276","key":"reopened_issues","type":"INT","name":"Reopened Issues"},{"id":"350","key":"security_hotspots","type":"INT","name":"Security Hotspots"},{"id":"354","key":"security_hotspots_reviewed","type":"PERCENT","name":"Security Hotspots Reviewed"},{"id":"355","key":"new_security_hotspots_reviewed","type":"PERCENT","name":"Security Hotspots Reviewed on New Code"},{"id":"319","key":"security_rating","type":"RATING","name":"Security Rating"},{"id":"343","key":"new_security_rating","type":"RATING","name":"Security Rating on New Code"},{"id":"317","key":"security_remediation_effort","type":"WORK_DUR","name":"Security Remediation Effort"},{"id":"318","key":"new_security_remediation_effort","type":"WORK_DUR","name":"Security Remediation Effort on New Code"},{"id":"352","key":"security_review_rating","type":"RATING","name":"Security Review Rating"},{"id":"353","key":"new_security_review_rating","type":"RATING","name":"Security Review Rating on New Code"},{"id":"356","key":"security_hotspots_reviewed_status","type":"INT","name":"Security Review Reviewed Status"},{"id":"358","key":"new_security_hotspots_reviewed_status","type":"INT","name":"Security Review Reviewed Status on New Code"},{"id":"357","key":"security_hotspots_to_review_status","type":"INT","name":"Security Review To Review Status"},{"id":"359","key":"new_security_hotspots_to_review_status","type":"INT","name":"Security Review To Review Status on New Code"},{"id":"11","key":"skipped_tests","type":"INT","name":"Skipped Unit Tests"},{"id":"60","key":"statements","type":"INT","name":"Statements"},{"id":"162","key":"sqale_index","type":"WORK_DUR","name":"Technical Debt"},{"id":"297","key":"sqale_debt_ratio","type":"PERCENT","name":"Technical Debt Ratio"},{"id":"304","key":"new_sqale_debt_ratio","type":"PERCENT","name":"Technical Debt Ratio on New Code"},{"id":"96","key":"uncovered_conditions","type":"INT","name":"Uncovered Conditions"},{"id":"177","key":"new_uncovered_conditions","type":"INT","name":"Uncovered Conditions on New Code"},{"id":"93","key":"uncovered_lines","type":"INT","name":"Uncovered Lines"},{"id":"174","key":"new_uncovered_lines","type":"INT","name":"Uncovered Lines on New Code"},{"id":"14","key":"test_execution_time","type":"MILLISEC","name":"Unit Test Duration"},{"id":"10","key":"test_errors","type":"INT","name":"Unit Test Errors"},{"id":"12","key":"test_failures","type":"INT","name":"Unit Test Failures"},{"id":"13","key":"tests","type":"INT","name":"Unit Tests"},{"id":"15","key":"test_success_density","type":"PERCENT","name":"Unit Test Success (%)"},{"id":"310","key":"vulnerabilities","type":"INT","name":"Vulnerabilities"},{"id":"324","key":"wont_fix_issues","type":"INT","name":"Won't Fix Issues"}],"total":112,"p":1,"ps":500}"
2023-02-27T17:53:20.9330898Z ##[debug]pollingTimeoutSec=300
2023-02-27T17:53:20.9331575Z ##[debug][SQ] API GET: '/api/server/version' with query "undefined"
2023-02-27T17:53:21.2939989Z ##[debug]Response: 200 Body: "8.0.0.38340"
2023-02-27T17:53:21.2950737Z ##[debug]Build.BuildNumber=20230227.1
2023-02-27T17:53:21.2951662Z ##[debug]Agent.TempDirectory=C:\azagent\A1\_work\_temp
2023-02-27T17:53:21.2958750Z ##[debug]defaultRoot: 'C:\azagent\A1\_work\_temp'
2023-02-27T17:53:21.2959515Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-02-27T17:53:21.2960207Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-02-27T17:53:21.2960880Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-02-27T17:53:21.2961545Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-02-27T17:53:21.2962191Z ##[debug]matchOptions.debug: 'false'
2023-02-27T17:53:21.2963133Z ##[debug]matchOptions.nobrace: 'true'
2023-02-27T17:53:21.2965064Z ##[debug]matchOptions.noglobstar: 'false'
2023-02-27T17:53:21.2965748Z ##[debug]matchOptions.dot: 'true'
2023-02-27T17:53:21.2966419Z ##[debug]matchOptions.noext: 'false'
2023-02-27T17:53:21.2967953Z ##[debug]matchOptions.nocase: 'true'
2023-02-27T17:53:21.2968819Z ##[debug]matchOptions.nonull: 'false'
2023-02-27T17:53:21.2969473Z ##[debug]matchOptions.matchBase: 'false'
2023-02-27T17:53:21.2970020Z ##[debug]matchOptions.nocomment: 'false'
2023-02-27T17:53:21.2970759Z ##[debug]matchOptions.nonegate: 'false'
2023-02-27T17:53:21.2971393Z ##[debug]matchOptions.flipNegate: 'false'
2023-02-27T17:53:21.2972003Z ##[debug]pattern: 'sonar\20230227.1\**\report-task.txt'
2023-02-27T17:53:21.3007032Z ##[debug]findPath: 'C:\azagent\A1\_work\_temp\sonar\20230227.1'
2023-02-27T17:53:21.3007710Z ##[debug]statOnly: 'false'
2023-02-27T17:53:21.3008518Z ##[debug]findPath: 'C:\azagent\A1\_work\_temp\sonar\20230227.1'
2023-02-27T17:53:21.3009199Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2023-02-27T17:53:21.3009868Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2023-02-27T17:53:21.3010687Z ##[debug]findOptions.followSymbolicLinks: 'true'
2023-02-27T17:53:21.3011555Z ##[debug]findOptions.skipMissingFiles: 'false'
2023-02-27T17:53:21.3024313Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230227.1 (directory)
2023-02-27T17:53:21.3035788Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230227.1\c3284177-9dc5-a390-f9a7-57aad12b94ca (directory)
2023-02-27T17:53:21.3042255Z ##[debug]  C:\azagent\A1\_work\_temp\sonar\20230227.1\c3284177-9dc5-a390-f9a7-57aad12b94ca\report-task.txt (file)
2023-02-27T17:53:21.3043068Z ##[debug]3 results
2023-02-27T17:53:21.3043609Z ##[debug]found 3 paths
2023-02-27T17:53:21.3044175Z ##[debug]applying include pattern
2023-02-27T17:53:21.3044896Z ##[debug]adjustedPattern: 'C:\azagent\A1\_work\_temp\sonar\20230227.1\**\report-task.txt'
2023-02-27T17:53:21.3060449Z ##[debug]1 matches
2023-02-27T17:53:21.3061069Z ##[debug]1 final results
2023-02-27T17:53:21.3061764Z ##[debug][SQ] Searching for sonar\20230227.1\**\report-task.txt - found 1 file(s)
2023-02-27T17:53:21.3062727Z ##[debug][SQ] Read Task report file: C:\azagent\A1\_work\_temp\sonar\20230227.1\c3284177-9dc5-a390-f9a7-57aad12b94ca\report-task.txt
2023-02-27T17:53:21.3097920Z ##[debug][SQ] Parse Task report file: organization=organizationName
projectKey=organizationName_Ecommerce
serverUrl=https://sonarcloud.io
serverVersion=8.0.0.38340
branch=DEV-1408
dashboardUrl=https://sonarcloud.io/dashboard?id=organizationName_Ecommerce&branch=DEV-1408&resolved=false
ceTaskId=AYaUAeIbqeHvkcMg-NjB
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AYaUAeIbqeHvkcMg-NjB

2023-02-27T17:53:21.3107544Z ##[debug][SQ] Waiting for task 'AYaUAeIbqeHvkcMg-NjB' to complete.
2023-02-27T17:53:21.3108829Z ##[debug][SQ] API GET: '/api/ce/task' with query "{"id":"AYaUAeIbqeHvkcMg-NjB","additionalFields":"warnings"}"
2023-02-27T17:53:21.7109224Z ##[debug]Response: 200 Body: "{"task":{"id":"AYaUAeIbqeHvkcMg-NjB","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","analysisId":"AYaUAeLs4TUG2k_aCZeR","status":"SUCCESS","submittedAt":"2023-02-27T18:53:16+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-27T18:53:16+0100","executedAt":"2023-02-27T18:53:18+0100","executionTimeMs":1431,"logs":false,"hasScannerContext":true,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warningCount":1,"warnings":["Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results."]}}"
2023-02-27T17:53:21.7112138Z ##[debug][SQ] Task status:SUCCESS
2023-02-27T17:53:21.7115555Z ##[debug][SQ] Task complete: {"id":"AYaUAeIbqeHvkcMg-NjB","type":"REPORT","componentId":"AYY2BCGF1clJOjotJ6Vk","componentKey":"organizationName_Ecommerce","componentName":"Ecommerce","componentQualifier":"TRK","analysisId":"AYaUAeLs4TUG2k_aCZeR","status":"SUCCESS","submittedAt":"2023-02-27T18:53:16+0100","submitterLogin":"sandrapati-anujahnavi34960","startedAt":"2023-02-27T18:53:16+0100","executedAt":"2023-02-27T18:53:18+0100","executionTimeMs":1431,"logs":false,"hasScannerContext":true,"organization":"organizationName","branch":"DEV-1408","branchType":"SHORT","warningCount":1,"warnings":["Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results."]}
2023-02-27T17:53:21.7118985Z ##[debug][SQ] Retrieve Analysis id 'AYaUAeLs4TUG2k_aCZeR.'
2023-02-27T17:53:21.7119926Z ##[debug][SQ] API GET: '/api/qualitygates/project_status' with query "{"analysisId":"AYaUAeLs4TUG2k_aCZeR"}"
2023-02-27T17:53:22.1082115Z ##[debug]Response: 200 Body: "{"projectStatus":{"status":"ERROR","conditions":[{"status":"OK","metricKey":"new_reliability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_security_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_maintainability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"ERROR","metricKey":"new_coverage","comparator":"LT","periodIndex":1,"errorThreshold":"6","actualValue":"3.0303030303030303"},{"status":"OK","metricKey":"new_duplicated_lines_density","comparator":"GT","periodIndex":1,"errorThreshold":"3","actualValue":"0.0"},{"status":"OK","metricKey":"new_security_hotspots_reviewed","comparator":"LT","periodIndex":1,"errorThreshold":"100","actualValue":"100.0"}],"periods":[],"ignoredConditions":false}}"
2023-02-27T17:53:22.1084640Z ##[debug][SQ] Generate analysis report.'
2023-02-27T17:53:22.1151836Z ##[debug]Number of analyses in this build: 1
2023-02-27T17:53:22.1152499Z ##[debug]**Overall Quality Gate status: failed**
2023-02-27T17:53:22.1163260Z ##[debug]System.TeamFoundationCollectionUri=https://organizationName.visualstudio.com/
2023-02-27T17:53:22.1164026Z ##[debug]System.TeamProjectId=d61598ee-970a-421a-8062-10562ffd2748
2023-02-27T17:53:22.1164643Z ##[debug]Build.BuildId=28690
2023-02-27T17:53:22.1165265Z ##[debug][{"op":0,"path":"/sonarglobalqualitygate","value":"failed"}]
2023-02-27T17:53:22.1171561Z ##[debug]SYSTEMVSSCONNECTION exists true
2023-02-27T17:53:22.1176909Z ##[debug]SYSTEMVSSCONNECTION exists true
2023-02-27T17:53:22.1196459Z ##[debug]Acquiring a build API object.
2023-02-27T17:53:22.4565802Z ##[debug]Creating a new build property with global Quality Gate Status
2023-02-27T17:53:25.6716439Z ##[debug]build.artifactStagingDirectory=C:\azagent\A1\_work\2\a
2023-02-27T17:53:25.6748292Z ##[debug][SQ] Summary saved at: C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-27T17:53:25.6749393Z ##[debug][SQ] Uploading build summary from C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-27T17:53:25.6765590Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=SonarCloud Analysis Report;]C:\azagent\A1\_work\2\a\.sqAnalysis\SonarQubeBuildSummary.md
2023-02-27T17:53:25.6881749Z ##[section]Finishing: Publish Quality Gate Result

Overall Quality Gate status: failed for Dev2 environment. Code base is the same for both dev2 & Dev3 pipelines.

Please help to understand what is the root cause of the issue and how can i resolve this.

Hey there.

It’s not clear to me from your description what the difference is between dev2 and dev3. Maybe you can share some screenshots from SonarCloud that better demonstrate the difference? Which report.xml file are you referring to?

It would also probably be beneficial if you compare the logs of SonarCloudAnalyze from each branch to spot any differences (a diff should help here)

Thank you for your response.

jacoco report.xml is what i am referring to.

Below are the screenshot for dev3

Below are the screenshot for dev2

Below are Azure pipeline tasks that i am using and jacoco latest is configured on both dev2 & dev3 servers

  • task: SonarCloudPrepare@1
    displayName: ‘Prepare analysis on SonarCloud’
    inputs:
    SonarCloud: ‘SonarCloud_connection_Ecomm’
    organization: org
    scannerMode: ‘CLI’
    configMode: ‘manual’
    cliProjectKey: ‘orgEcommerce’
    cliProjectName: ‘Ecommerce’
    cliSources: ‘F:\apps\projects\org\dent-001\Ecommerce\hybris\bin\custom\core\org\src’
    extraProperties: |
    sonar.projectBaseDir=F:\apps\projects\org\dent-001\Ecommerce\hybris\bin
    sonar.java.binaries=F:\apps\projects\org\dent-001\Ecommerce\hybris\bin\custom\core\org
    sonar.coverage.jacoco.xmlReportPaths=F:\apps\projects\org\dent-001\Ecommerce\hybris\log\jacoco\report.xml
    sonar.exclusions=/*Constants.java,/jalo/**/.java,/Test.java,/Test.class,/*Constants.class,/jalo/**/.class
    sonar.java.libraries=F:\apps\projects\org\dent-001\Ecommerce\hybris\bin\platform\apache-ant\lib*.jar

  • task: SonarCloudAnalyze@1
    displayName: ‘Run Code Analysis’

  • task: SonarCloudPublish@1
    displayName: ‘Publish Quality Gate Result’

Please let me know if you need any more details or any prerequisites to be checked to publish report to sonarcloud.

Thank you in advance for all your support.

It looks like the report is being published in both cases, but there are no lines identified as “new” in dev2 as compared to your master branch. Only new lines are being evaluated as you’re analyzing a short-lived branch (see the documentation on branch analysis).

Hi Colin

For both the environments i am using the same branch (DEV-1408) without any new commits.
First i executed dev2 - report doesn’t show anything.
Later i executed dev3 - then i got 3% coverage and 4 code smell.
If the branch doesn’t have any new code even for my second execution it should not show any coverage but dev3 execution is giving some report.
That is where i am not getting what is going wrong here and how to fix it. Need your support.

Thank you

It’s hard to say what’s going wrong – I would suggest you compare the build/analysis logs of each run (a diff between them should suffice) and see if there’s anything obviously different in the logs.

Hi Colin

Compared Azure pipeline logs but unfortunately I dint find anything other than the one below.

2023-02-27T17:53:22.1082115Z ##[debug]Response: 200 Body: "{"projectStatus":{"status":"ERROR","conditions":[{"status":"OK","metricKey":"new_reliability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_security_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"OK","metricKey":"new_maintainability_rating","comparator":"GT","periodIndex":1,"errorThreshold":"1","actualValue":"1"},{"status":"ERROR","metricKey":"new_coverage","comparator":"LT","periodIndex":1,"errorThreshold":"6","actualValue":"3.0303030303030303"},{"status":"OK","metricKey":"new_duplicated_lines_density","comparator":"GT","periodIndex":1,"errorThreshold":"3","actualValue":"0.0"},{"status":"OK","metricKey":"new_security_hotspots_reviewed","comparator":"LT","periodIndex":1,"errorThreshold":"100","actualValue":"100.0"}],"periods":[],"ignoredConditions":false}}"
2023-02-27T17:53:22.1084640Z ##[debug][SQ] Generate analysis report.'
2023-02-27T17:53:22.1151836Z ##[debug]Number of analyses in this build: 1
2023-02-27T17:53:22.1152499Z ##[debug]**Overall Quality Gate status: failed**

I will review them again if I can find anything else.
Thank you.

Hi Colin

I am seeing 404 error on Analysis task. Can you help me here if there is anything that i need to update to resolve the issue.
Is there any dependency on GIT version? On dev3 server i have 2.27.0 (working fine) and on dev2 server i have 2.37.1 (not working). I dont see SCM reference in dev2 logs which is in dev3. So i had doubt if there is any dependency??

INFO: SCM Publisher SCM provider for this project is: git

  • task: SonarCloudAnalyze@1

Cache error in logs for dev2 pipeline:

git reference on dev3 which is missing for dev2
image

Can you help me here to identify the issue.

Thank you in advance for the support.