Specify minimum required JDK version for Ant Runner

Hello,

is there any way to setup an Ant Runner to use JDK 1.6 or later? If I leave "<Default>" in "JDK" field sometimes the script is started under JDK 1.5. But if I specify an exact version ("JDK 1.6", "JDK 1.7" or "JDK 1.8") it would mean that agents where this particular version of JDK isn't installed would be incompatible. However I'm sure that all our agents have at least one of these versions installed.

---
Nikolay Chashnikov

1 comment
Comment actions Permalink

Hello Nikolay,

Currently it is not possible to specify minimum required JDKs for runners in TeamCity. Seems like this request is related https://youtrack.jetbrains.com/issue/TW-1535, please vote.
As for now you can try use "<Default>" value in "JDK" for Ant runner and specify agent requirement. For example: parameter name: env.JDK_HOME, condition: matches, value: regexp for suitable JDKs.

0

Please sign in to leave a comment.