1

Is it possible to trigger a force build on a project inside cruisecontrol.net using a batch file?????

3 Answers 3

3

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.