Preview Transforms for an Environment
When updating Variables, it would be great to see what Octopus will change the web.config to when deployed to an environment without actually deploying it.
Jimmy Revtorp commented
would love a feature like that... its's often tricky to know if everything is configured corretly
We should be able to preview variables for any environment on the octopus ui.
This is really needed with the new "Improved" ui... and would be handy considering the amount of variables we have.
Nithin Shenoy commented
Based on this discussion (http://help.octopusdeploy.com/discussions/questions/7680-previewing-transforms-and-substitution), I went ahead and sort of created my own tool. I created a little powershell script that will take in a variable JSON file from a drop target, a web.config, and a web.foo.config transform file and spit out a transformed file with the final substitutions. Here's a link to the GitHub Gist: https://gist.github.com/nshenoy/79ac16c84edcc65485dff263d1e2781f . This is just an initial stab at it, but seems to work ok for what we need. Hopefully someone may find this helpful. If something like this was native in Octopus, it would be incredibly helpful (and probably more stable than this hacked up script).
Georg Müller commented
Would be definitly nice to have such a preview for all kind of config transform, including variable replacement and substitution.