This is the coolest thing I haven’t seen anyone doing.
Set up a teamcity instance on a shared server. Create a git repository for whatever PowerShell tasks you find useful, check the scripts into there.
Then you can set up teamcity to run your scripts at a click of a button via their web interface.
What’s cool is you can define parameters in teamcity that you can pass to the script. And a template that calls the script with those parameters. Then you define instances of that configuration with different parameters which will appear in the web interface. The user can customise the parameters when they click run as well.
Super useful and reasonably easy way to provide access to your scripts!
If anyone has an even better way to do this type of thing I’d love to hear it.
submitted by /u/synthematics
[link] [comments]
The post PowerShell ProTip: run your scripts through a Teamcity instance appeared first on How to Code .NET.