WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export Solution Task takes longes time than expected

bipinshan opened this issue · comments

commented

HI,

I have only added 3 entities with minimal components in the solution. When I run the pipeling it is taking more tha 30 minutes to export the solution and it is still running.

Please help!
Capture_ExportSolution

Same issue as mine i think #278. I'm currently trying to execute the same logic on my custom build server.

@bipinshan @mkellenbenz how long does it take to export from the UI? And how long is it taking from build server?

Are you using hosted or private agents?

commented

Hi Wael,

It took around 3 minutes from UI to export the same solution.

I am using default hosted agent only which is populated automatically when we create new pipeline in Azure devops.

Increasing the timeout somehow solved the issue on one of my test projects.

I've run it multiple times now consistently working. Maybe MSFT did something...

There is a lengthy thread https://github.com/WaelHamze/dyn365-ce-vsts-tasks/issues/183 in the task repo on this. Lately it seems the 1st Export of the day often hangs regardless of the timeout. After cancelling, the second one runs fine. There is an laternative PowerShell script posted on that thread that attempts to work around this and seems to band-aid the problem.