Sending Variables from script


Can I add variables without prompt to user before deploy a package. I want store all my variables under git project. So that my code and octopus variables are in the same place.


Hi Mohsin,

Thanks for reaching out. This isn’t exactly easy to do, but you could follow the logic of Set-OctopusVariable shown on the below link to create multiple variables and then use them on the following steps. This would have to be the very first step of the deployment.

Keep an open mind when trying this out, I can see many scenarios where this wouldn’t work, but It’ll all depend on your needs and setup :).