0
votes

I have PowerShell script, that I would like to use in deployments of Dynamics 365 to migrate an Access Team Template to our Test and Prod environments.

I have added the PowerShell script to the repository, and I would now like to add a PowerShell task to each of the stages in the deployment to migrate the Access Team Teamplate correctly in each of the environments.

Repository2

However, I am not sure how to reference the path of the script in each of the stages in the release. When I click on the three dots to select the file, it is looking at the Linked artifacts - and not the repo.

enter image description here

If I add the PowerShell task to the pipeline, then I can select the script from the three dots.

enter image description here

Is it possible to reference the script in the release somehow?

1

1 Answers

1
votes

You need to add your repository as a artifact or publish this script as artifact in the pipeline.

To do fitst just add a new artifact and select repository where you keep script:

enter image description here

Then you will get it repo as regular artifact.

Another way is pubslih this script. To do that you need do cehckout repo in the pipeline which you already have to produce you primary artifact and publish just this script. Then it will become available as you already have defined source of artifacts.