I have a set of custom (written in Java7) pre-conditions and some changesets that use them. I call the changesets from an Ant (1.8.2) script that I execute in a terminal window (Mac 10.8.x). Ant script from terminal works fine.
When we do our builds using Jenkins, however (same versions of everything), the pre-conditions cannot be loaded and the changesets that use the pre-conditions fail.
The error is:
“Could not open custom precondition class …”
From the source it looks like a pretty straightforward Class.forName call, though there is a comment the specifically calls out an issue with Ant.
Oh, one more thing: we have a CustomSqlChange in the same change log, and it loads and executes without error. It is only the custom pre-conditions that fail.
Thanks,
Vince