I have created a plugin for Jenkins to execute .csx scripts using ScriptCS. I have attached the hpi and jar file for testing, but If anyone is interested I will publish the plugin with Jenkins.
Currently it is only possible to declare the location of the script you want to run and the location of scriptcs.exe (in global settings). I plan to add the following:
- Support arguments.
- Support entering C# directly into Jenkins (write that C# to a temporary file at build time and execute it).
If anyone else has any suggestions please go ahead.