views:

17

answers:

0

Is there any way to pass the CruiseControl modification set to a custom ant task?

My setup: I have a CruiseControl (the original one, not CC.NET or suchlike) instance that monitors a SVN repository of binary packages waiting to be tested. Whenever a new binary package appears, this package should be sent to another "test host" to test it. This works in general via a custom ant task, but has a snatch...

The problem is that the binary packages are built for multiple architectures. My custom ant task should select that "test host" that matches the architecture of the binary package (it maintains an internal list of "test hosts" for that purpose). At the moment, all "test hosts" get notified to run their tests whenever a new package for any architecture appears.

So, my idea of an ideal CruiseControl project logic would be:

  • CruiseControl monitors an SVN directory for changes via <modificationset> (and also a local file which should trigger all "test hosts")
  • On any modification, an ANT script is called by CruiseControl, which in turn calls a custom ANT task
  • This custom ANT task needs to know which files exactly have been modified to trigger the CruiseControl run so that it can select the correct "test host" based on the names of the modificated files (they contain the architecture in their name)

My question is: How can I pass the modificationset to that ANT task?

One solution idea I stumbled upon was the "Modification Writer" plugin, but that one is apparently only available for CruiseControl.NET. :-(