Hi tarun k
In Azure DevOps, individual steps or jobs can have a timeoutInMinutes setting. If that’s set too low e.g. 60 minutes, the job will be terminated once it hits that limit, even if it's still running.
You can increase it like this in your YAML pipeline:
jobs:
- job: BuildJob
timeoutInMinutes: 120
steps:
# your steps here
Review the steps in your build process to see if there are any that can be optimized. For example, reducing unnecessary steps, breaking up the build into smaller pieces, or optimizing test cases can help.
If you’re running on a build agent (e.g., an Azure VM, AWS EC2, Jenkins agent), check the logs and health of the agent itself. Sometimes, agent misconfigurations or resource exhaustion can slow down builds.
If possible, can you share more about what specifically the task is doing.
Hope this helps!
Please Let me know if you have any queries.