Update: So many people seem to keep coming to this blog post from Mike Clark's blog that I feel it might make sense to mention that the WeblogPublisher has been incorporated into the CruiseControl distribution already a while ago. In other words, no need to download the stuff from the attached URLs--just use a recent enough version of CruiseControl and you're all set.
As I mentioned earlier, I set out to write a new publisher for CruiseControl.
I just added support for MetaWeblog API to go with the Blogger API. It was very straight-forward since it also uses XML-RPC.
This is what it looks like right now:
To start using it, just throw the publisher class to your CruiseControl main/src/net/sourceforge/cruisecontrol/publishers directory, download xmlrpc-1.2-b1.jar into the main/lib directory, rebuild cruisecontrol.jar with ant jar, and add these to your CruiseControl config.xml:
<cruisecontrol>
<project name="foo">
<plugin name="weblog" classname="net.sourceforge.cruisecontrol.publishers.WeblogPublisher"/>
...
<publishers>
<weblog blogurl="http://buildserver:8080/blog/xmlrpc"
api="metaWeblog|blogger"
blogid="blog"
username="lasse"
password="secret"
category="cruisecontrol"
reportsuccess="fixes"
subjectprefix="[CruiseControl]"
buildresultsurl="http://buildserver:8080/cruisecontrol/buildresults/myproject"
logdir="/cruisecontrol/logs/myproject"
xsldir="/cruisecontrol/reporting/jsp/xsl"
css="/cruisecontrol/reporting/jsp/css/cruisecontrol.css"/>
</publishers>
</project>
</cruisecontrol>
You can download the source code from:
WeblogPublisher.java (the publisher)
WeblogPublisherTest.java (unit tests)
In my Blogs and Wikis entry, I briefly mentioned that we're using blogs on my current project.
Read more...
Read more...







