Reputation: 4929
Is it possible to trigger a force build on a project inside cruisecontrol.net using a batch file?????
Upvotes: 1
Views: 823
Reputation: 11617
You could use a URL Trigger, but as Joseph said, your machine with the batch file would need to modify a web page that the build machine checks. This could be a file on the build machine itself, modified by your batch file.
Upvotes: 3
Reputation: 32674
There's no simple URL, the buttons send a form via POST. However, there's a command line utility that will be included in 1.5 to perform such tasks.
Upvotes: 0
Reputation: 25513
If your local machine has visibility to the web site that CC.NET run's on the build machine, I would imagine you could write a batch file that would execute the url command on whatever project you want which effectively just presses the "Force Build" button. Just issue whatever request the "Force Build" button does on that page.
I would give you some code, but I don't have my server box up at the moment so I can't see what that would be.
Upvotes: 1