views:

33

answers:

1

How would you configure Hudson to only execute Build or Post Build actions if changes in Clear case dynamic view are detected?

+2  A: 

With the ClearCase Plugin for Hudson, you can use snapshot and dynamic views.

I prefer using existing dynamic views:

alt text

I define my dynamic view on a slave and define my job to be executed on that slave.


Note: for dynamics views that are created by Hudson, the trick is "load rules are required" (even though load rules are normally reserved for snapshot views).

Specify one or more load rules - this is required, even with a dynamic view.
The load rules are used both for determining the contents of snapshot views and for constructing the "cleartool lshistory" command used for polling and generating changelogs.

So when you want Build and Post Build actions on changes, you need to have defined your load rules on your dynamic view setting, in order for the cleartool lshistory to accurately determine if there are any changes on said dynamic view.

VonC