SonarCloud Never starts build

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps) - AzureDevOps

  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI - AzureDevOps

  • Scanner command used when applicable (private details masked)

  • Languages of the repository - .Net / C#

  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
    The pipeline never downloads the code.
    Screen just displays this -
    Queued: Today at 8:37 PM [[manage parallel jobs](https://abbes-epm-
    Azure DevOps Services | Sign In
    isHosted=false&parallelismTag=Private)]

    The agent request is not running because all potential agents are running other requests. Current
    position in queue: 1

Job preparation parameters

If I comment out the following line everything works

  • task: SonarCloudAnalyze@1

Hey there.

This can happen if there are no agents that meet the demands of your build (for example: SonarCloud analysis requires java to be a capability of the build agent).

Are these self-hosted build agents?

We found out what the issue was. The private agent didn’t have Java installed. Unfortunately, no error was displayed instead just a timeout. Also, the build steps that preceded the scan weren’t even invoked.

This was a new agent and wasn’t configured properly.

Thank you for the response.

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