Configuration variables in subfolders

Hi,

I am trying to deploy a folder to our IIS server. The package being deployed contains a bunch of .config files at the root level, and also contains a subfolder with its own .config files. The requirement is to have .config files in both the root level and the subfolder(s) level updated.

When I tried deploying and updating the variables, it seems only the .config in the root folder got updated, but not the one in the subfolder. Is this an Octopus limitation? The alternative I have is to package the subfolder separately and deploy it in a separate step, but I want to avoid extra work if Octopus already supports this, especially since the second package in this scenario will always have to be deployed inside the folder from the first package.

Hi @arvindhmani06,

Thank you for contacting Octopus Support.

Could you share a copy of your process JSON? Also, could you share a screenshot of the file structure of your package?

I look forward to hearing back from you.

Regards,
Donny

Thanks for your response, Donny. I’ve shared it with you privately.

-Arvindh

Hi @arvindhmani06,

Thank you for getting back to me and providing that.

I will look this over and get back to you.

Thank you for your patience.

Regards,
Donny

1 Like

Hi @arvindhmani06,

Thank you for your patience. I have two quick questions:

  • What version of Octopus Server are you running?
  • Is Step 3.2 the one you having trouble with the second .config file?

Let me know at your earliest convenience.

Regards,
Donny

  1. Octopus Server: v2020.3.4
  2. Yes, Step 3.2 is the one.

Hi @arvindhmani06,

Thank you for getting back to me.

I apologize for not asking sooner. However, it would be helpful if you do the following:

I look forward to hearing back from you.

Regards,

Hello Donny,

I sincerely apologize - I am no longer able to try out your suggestion because we’ve moved ahead with a workaround in this case.

I am still curious though - is this a feature supported by Octopus? And if so, is it enabled by default? If that is the case, I will see if a similar situation comes up in the future and report back if it works or not.

Thank you and I am sorry again for not being able to work with you here.

Sincerely,
Arvindh

Hi @arvindhmani06,

Thank you for getting back to me. I’m glad to hear you were able to implement a workaround even if we weren’t able to solve the original issue.

We do support this scenario. However, the path to the second .config file has to be passed to Octopus in the step in order to get the variables to update. We’d be happy to look at this again with you in the future when you have time.

If I can assist with anything else, please let me know

Regards,
Donny

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.