Problem with Azure DevOps pipeline integration

Template for a good new topic, formatted with Markdown:

  • ALM used Azure DevOps
  • CI system used Azure DevOps
  • Scanner command used when applicable; Azure DevOps pipeline Tasks + Maven build
  • Languages of the repository: Java (Maven)
  • Only if the SonarCloud project is public, the URL: NO
    • And if you need help with pull request decoration, then the URL to the PR too: NO
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting):
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project cprot-ms-notifiche: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator to check the permissions of the user the token belongs to -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  • Steps to reproduce: To reproduce insert project.key and project.name wrong values. My problem is that the project key and name values are correct.
  • Potential workaround

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

To understand more about where in the pipeline it’s failing, can you please:

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

And provide a wider range of logs? Specifically we’ll want to see which web request resulted in this message.