C# client pass variable to deployment/release

(Pavel Shtanko) #1

Hi there,

I have the project requires the parameter(variable) to be set during the deployment process.

I can’t find how can I do that with octopus c# client.

Could you help me?

(Henrik Andersson) #3

Hi Pavel,

The DeploymentResource has a FormValues property that is used to pass values for prompted variables.

You can see how we use this in octo.exe here.

I hope that helps.

Thank you and best regards,

(Pavel Shtanko) #4

Already solved, but that was not that easy to understand that I need to pass the id of the element as a key and get it from the template which is even more hard to get.

(system) closed #5

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