tags:

views:

23

answers:

1

The 3rd party git repository service I use provides post-commit hook where it will post the commit details in JSON to specified URL.

Most of build automation is via powershell (pull from git repo, build, copy artifacts). What Id like to be able to do is somehow launch the powershell script when the specified URL is hit. Im struggling to think what the best way (and most secure) to accomplish this would be. A simple aspx page hosted in IIS that launches powershell buildproj.ps1 with suitable security permissions and IP lock down?

+1  A: 

You can host the PowerShell engine within your ASPX code. You would need to use IIS/ASPX mechanisms for IP lock down and authentication/authorization for the URL.

Keith Hill