Is it possible to have a c# function defined as a template that can be called in multiple step templates? I have a bunch of string parsing logic duplicated but I don’t see how to consolidate it.
Thank you for your question. Yes, this is definitely possible!
Put your C# function in a
.csx file, create a package (just add it to a
.zipfile) and upload the package to Octopus Deploy’s package library. Once that is done, you can use that package in a “Run a Script” step or create a step template out of it.
I hope that has answered your question. Please let me know if I can assist further.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.