Azure Pipeline Build doesn't fail but stuck on ##[debug]Agent environment resources

Brian 25 Reputation points
2024-08-21T18:01:42.1633333+00:00

I inherited a project, its a Core 8 Asp.Net web app. The build step successfully builds, but then hangs. The next step in the build pipeline never fires and all that is output in the verbose logs are this, the build never stops.

Why is the build step not completing and not moving on to the publish step?

##[debug]Agent environment resources - Disk: / Available 17689.21 MB out of 74244.74 MB, Memory: Used 6560.00 MB out of 6921.00 MB, CPU: Usage 63.39%

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,572 questions
{count} vote

1 answer

Sort by: Most helpful
  1. A SIVAGAYATHRI 0 Reputation points
    2024-09-29T13:07:08.82+00:00

    The build step hanging in an ASP.NET Core 8 project could be due to several reasons:

    1. Long-running tasks: Background tasks like tests or build processes are not completing.
    2. MSBuild deadlock: A deadlock within the build process may cause it to hang.
    3. Tooling issues: Outdated or incompatible SDK/tools may cause issues. Ensure you're using the correct .NET SDK.
    4. Resource limits: The build agent might run out of memory or CPU, causing it to freeze.

    Check verbose logs, update tools, and try building locally to reproduce the issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.