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
117 stars 56 forks source link

does this tool has a feature to create a new folder for the extracted files in CICD Pipeline #122

Closed daakaram closed 4 years ago

daakaram commented 4 years ago

Hi,

i am trying to automate the CICD Process for exporting and importing the CRM Solutions using D365 Build tools provided in visual studio market place. here what i am trying to achieve is exporting the solution using build step MSCRM Export Solution. after this extracting the exported solution.zip file which then separated as individual component files. I wanted to create a new folder with the exported solution name and extract the individual component files into solution folder.

Thanks!!!

mattp65 commented 4 years ago

You can add a PowerShell task to your pipeline to create the folder(s) prior to using them. The tasks here basically just wrap calls MSFT provides.

daakaram commented 4 years ago

I created a self-hosted agent to run the build which is running the build job successfully till exporting the solution and having issues in extracting solution, while extracting the solution we get error as

##[error]Access to the path 'C:\Users\daakaram\Desktop\private-agent\1\b' is denied.

the exported solution exist in the path mentioned above and trying to extract to the specified folder

mattp65 commented 4 years ago

I would play around with Solution Packager manually to get a feel for what it expects for parms and folder names. An access error could be a lot of things not related to the task itself, especially since you are running your own agent, it could be an issue with your agent config. You have things pointing at a User folder on your server which could be part of the problem. Typically, the build agent uses root folder on the drive.

daakaram commented 4 years ago

HI Matt,

even i tried extracting the solution in the hosted Agent and receive the same error as Access Denied while extracting the solution shown as below screen shot

Capture

mattp65 commented 4 years ago

Again, I reccomend that you play around with Solution Packager manually (from your own machine, not a build agent) to get a feel for what it expects for parms and folder names.

WaelHamze commented 4 years ago

@daakaram are you still having issue? If yes please run with system.debug pipeline variable = true and share the logs

This task is working as expected.

WaelHamze commented 4 years ago

Closing as no activity for a month, please re-open if you are still having issues