Michael M writes: > Hi! > > is there a way to force a CruiseControl project by an external program > (e.g. via command-line). I want to use my own build script (written in > python) to start another build project in some situations. > > If there is no active push method to force a build, I have to somehow > use the pull method of the Url Trigger, which is a little long winded > for my case. So it would be great, if there is another method. > > Thanks in advance! :) > > Regards, > Michael
Hi Michael, you can send a HTTP Post request to the dashboard to force a build. You need to include the following data: ForceBuild = true projectName = your projects name serverName = the server name used by the dashboard Be sure to use the server name you configured in the dashboard.config. If in doubt you can get it from the URL of the project report page. See the .../server/foo/project/... part. Actually CCTray is doing the same when forcing a build over a HTTP connection. See project/CCTrayLib/Monitoring/HttpCruiseProjectManager.cs for reference. Maybe we should pull the monitoring stuff out of CCTray to make it easier to write custom monitoring apps in the future... I hope this helps. regards, Daniel
