Publish Quality Gate Result in Azure Devops Pullrequest does not work

hi,
I am using Azure Devops for my development, deployment etc… Currently my builds and pull requests do not show any sonar cloud analysis but in sonar cloud I can see my generated result and also its errors.

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Languages of the repository: C# and Angular/Typescript
  • Commands used: `- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
    displayName: ‘Prepare analysis on SonarCloud’
    inputs:
    SonarCloud: SonarCloud
    organization: xxx
    projectKey: XXXX
    projectName: XXXX
  • task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
    displayName: ‘Run Code Analysis’

      - task: SonarSource.sonarcloud.38b27399-a642-40af-bb7d-9971f69712e8.SonarCloudPublish@1
        displayName: 'Publish Quality Gate Result'
    

`

When i check my build i can see everything should work as expected but when i check the logs of “Publish quality Gate Result” i can see the error page which leads me to the azure devops service page. The page always tells me that all services are available. Does someone have an idea whats the problem is?

Hey there.

Is this happening for all projects / pull requests? Just some?

Hey, as it turns out it was a configuration error. My PAT has expired and thus the messages were not posted at my pull requests.

It would have been nice if a saw some kind of error message I guess. Nevertheless i hope this post would help somebody else too.

1 Like

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