Azure DevOps: error in Sonar publish quality tas-No analyses found in this build!

When I run the pipeline, it doesn’t throw an error but it generates one warnings:

Starting: SonarQubePublish

Task : Publish Quality Gate Result
Description : Publish SonarQube’s Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 4.9.2
Author : sonarsource
Help : Version: 4.9.2. More Information

##[warning]This task uses Node 6 execution handler, which will be deprecated soon. If you are the developer of the task - please consider the migration guideline to Node 10 handler - azure-pipelines-tasks/ at master · microsoft/azure-pipelines-tasks · GitHub. If you are the user - feel free to reach out to the owners of this task to proceed on migration.
##[warning]No analyses found in this build! Please check your build configuration.

and in the sonaqube dashboard, no results were observed.