Deployment to Custom Install Directory fails

I am using Custom Install directory to install the acceptance test assemblies. When I deploy a new release first time this step fails complaining the file path length restriction.
File path is constructed with fixed value (D:\Octopus\Apps) with other dynamic values such as package id, release number and azure region suffix.

When we check the installation directory to investigate why it is failing, we found that this step is creating a folder for the last variable (EUW) again and again.

So it is creating the folder D:\octopus\Apps\PackageName\\EUW and keep creating the EUW folder in some sort of recursion until fails.

I have selected ‘Purse this directory before installation option’ to ensure latest changes are deployed all the time.

could you please help?


Thanks for reaching out! Could you please follow the below instructions and send us a full build log? That way we should be able to see why are variables behaving in such a way. Odds are there’s a recursive variable set in place that’s causing this.

1) Add these 2 variables to your project

2) Create a new release (so the new variables take effect) and deploy it. If possible skip as many steps as you can and only leave step we are troubleshooting in order to avoid the noise in the log.

3) Send us the raw log of that deployment