Friday 15 January 2010

cruisecontrol.net - Fork process with CC .NET -


Is there a way to create a process in Cruise Control .NET? I want CC.net to launch a program when everything goes well, but now, CC.Net insists on the fact that the program will be closed upon completion of the build.

The program that has been started is up to one week at a time.

The way I do this is to use a PowerShell or batch script. The script can launch your process and after returning the executable, you can return to CC.NET as usual. This is the only way I can see, because CC.NET needs to go back and the script can return, even with the process that is running there. A sample PowerShell script is what you want. So you call PowerShell script along the path of XE as the percetimeter.

  Press the $ exepath = $ ("Executionable Path Executionable"). $ $ Item $ exePath  

Here CC.NET 1.5 But how will the powerhell set work

  & lt; Powershell & gt; & Lt; Script & gt; YourScriptName.ps1 & lt; / Script & gt; & Lt; ScriptsDirectory & gt; D: \ CruiseControl & lt; / ScriptsDirectory & gt; & Lt; BuildArgs & gt; You want to kick off the full path of exe & lt; / BuildArgs & gt; & Lt; / Powershell & gt;  

No comments:

Post a Comment