Upload build artefacts to your blog with Ant

I've extended the Pebble Ant tasks (new name, antblog) to include a task that will let you upload a file to your blog using the newMediaObject method on the MetaWeblog API.

    <taskdef
      name="metaWeblog.newMediaObject"
      classname="pebble.ant.metaweblog.NewMediaObjectTask"/>

    <metaWeblog.newMediaObject
      url="http://localhost:8080/blog/xmlrpc"
      blogid="blog"
      username="simon"
      password="password"
      src="${build.dir}/${some.file}"
      dest="files/${some.file}" />

So, in addition to updating a project blog with the build status, you can also upload the end result. This will be in Pebble 1.6 which will be in beta as soon as I finish the docos.




Add a comment Send a TrackBack