login
Blurts on the Art of Software Development

Today | RSS | RDF | Atom | Other Tags
Categories : All | All | CI | .NET | General | Humour | Java | Personal | Reviews | Ruby | SW Eng

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:

This is what it looks like at the time of writing

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)


When i write new publisher, i always get the ClassNotFound Exception. How develop new plugin step you do? Could you post it out on your weblog? thank you.
"jr.john", I suppose you don't have the CruiseControl classes in your classpath? (oh, and sorry for the late reply -- I only turned on comment notifications a while ago)

In my Blogs and Wikis entry, I briefly mentioned that we're using blogs on my current project.



Read more...
Lasse Koskela has implemented a CruiseControl Publisher that supports the Weblog API. This is an interesting concept. Managing your build system through weblog software. I'm interested in seeing how this would work and what effect blogging soft...

Read more...


Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 7 + 6 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://radio.javaranch.com/lasse/addTrackBack.action?entry=1099154590000