I want to do xml transformation. I have the following database.settigns.xml file. When the package deployed, I want the values to be replaced with the actual values from variables defined in Octopus.
<?xml version="1.0" encoding="utf-8"?>
As this xml file is used by the code, I’ve to create another database.settings.Release.xml file that contains octopus variable names like
<?xml version="1.0" encoding="utf-8"?>
I used Substitution variable for database.settings.Release.xml which is working fine. However, when I try to do transform database.settings.Release=>database.settings.xml, the transform does not occur. did I miss something here?
Would you please let me know which version of Octopus you’re running?
Would you also be able to add a screenshot of how you have the variable substitution set up within your Octopus step so I can take a look at that?
Can you also attach a screenshot of the variables on your variables page?(you can censor the values, I would just like to see the names and scopings.)
If you prefer to privately message the screenshots for security reasons that works fine for me.
Finally, I just want to confirm, nothing is being substituted correct? The octopus variables are just there in the file untouched after deployment? What does the task log state about substitutions on that file?
I believe the reason the Configure XML transform is not working is because you need to format the file that will be doing the transforming to have the xdt syntax.
Within your database.settings.Release.xml file, you have placed #{docclient_url} and its not being substituted? Do you have that variable with various environment scoping values in your project?