I’m trying to create a Deploy.ps1 that takes care of copying the correct robots.txt or whatever static file and to clean the extra config files (e.g. Web.QA.config).
I’ve done this before using a custom PowerShell to copy the robots.txt and the “File System - Clean Configuration Transforms” community step template in the context of and IIS Website, but now I’m deploying to an Azure web app.
I looked the task log and apparently, this is the variable I need “CurrentDirectory”,
Is there any way to get the “CurrentDirectory” value, in my case “C:\Octopus\Work\20170320232602-8” to use it on a deploy.ps1?
How do you handle these situations in the context of Azure web apps?