开发者

How to get CC.net build status for a project programatically?

From a shell script, I want to detect if CC.net is currently building a project. I have the URL of the CC.net server and the name of the project.

Heck, to make it easier, I'm running this on the CC.net server itself! So any kind of local-process querying is fine.

I know I can grab the status page as HTML, and then grep that or something开发者_开发问答, but it seems awkward (especially as this is Windows). Is there an easier way?


Yes, if you don't mind writing some code you should be able to write a wrapper around ThoughtWorks.CruiseControl.Remote.dll if you poke around the source for CCTray you'll see that it is calling ICruiseManager.GetProjectStatus() which will give you a ProjectStatus array containing each of the active projects, from there you should have all you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜