We have some configuration files stored in source control. IE, config.test, config.stage, config.prod. after the deployment I want to end up with a config that is specific to my environment. So I wrote a powershell script to pass an environment variable to which will delete / rename the files based on the environment. This works great, but I want to extract some information from the config file to use in a notification email.
I realize, that the data the changes “should” be stored in octopus as variables and replace the data in a single config file which would then also be available in my notification email. I think the problem is the amount of config data, I would rather store this data in 3 separate files than have to create variables for everything.
Given this process however, is there any way to get this data from the config? i dont want to duplicate it in octopus variables, just extract it from the config. Sure I could run some other external process that extracts the config data and sends an email, but then I lose the Octopus Context… Please advise, thanks.