Closed daakaram closed 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.
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
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.
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
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.
@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.
Closing as no activity for a month, please re-open if you are still having issues
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!!!