WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Export solution is not working the first time of the day #193

Closed Fernandobo21 closed 4 years ago

Fernandobo21 commented 4 years ago

hi,

Found an issue with the MSCRM Export Solution task. The first time in the day that we tried to export a solution TimeTaken TaskConfiguration

always stay working more than 5 minutes. then if we stop that execution and then retry, works fine and in only 2 minutes.

Attached an image with the configuration and another image with the transcurred time.

Thanks in advance.

Guyanthalas commented 4 years ago

I was having the same problem yesterday. It also seems that if there is sufficient time between runs it still fails. The first one failed and I tried to re-run it some hours later and it failed again (time-out). It wasn't until I tried doing it today that I went looking to see if anyone else was having this issue, and found this. Sure enough, once I canceled the task mid run and immediately re-ran, it worked on the re-run.

mattp65 commented 4 years ago

See https://github.com/WaelHamze/dyn365-ce-vsts-tasks/issues/183

WaelHamze commented 4 years ago

@Fernandobo21 @Guyanthalas

Might be worth trying to add the publish customizations task before the export of the solution to see if it fixes the problem?

Jose8bike commented 4 years ago

@WaelHamze I added the "Publish Customization" step before exporting the solution, and it worked.

PipelineExportSolution

Even so, I do not understand well why before it did not work the first time and the following ones did.

Thank you very much for the help.

Guyanthalas commented 4 years ago

@WaelHamze Mine was Publish/increment version/Export... changed it to Increment/Publish/Export and the problem persists.

Guyanthalas commented 4 years ago

Update, I don't think this is on your code. As a test, I installed the Power Platform Tools and used their "export solution" task. It also stalls out. Re-run works perfectly. Still no idea why it is happening, but at least I can take it off your shoulders to fix.

mattp65 commented 4 years ago

Check the Issue I linked to above. It has an alternate PowerShell script that you can try.

WaelHamze commented 4 years ago

Closing this as a duplicate of #183