One of our builds use Ant and sshexec to deploy files. However we get the following error:
#[sshexec] Problem: failed to create task or type sshexec Cause: Could not load a dependent class com/jcraft/jsch/Logger It is not enough to have Ant's optional JARs you need the JAR files that the optional tasks depend upon. Ant's optional task dependencies are listed in the manual. Action: Determine what extra JAR files are needed, and place them in one of: -E:\TeamCityAgents\Agent1\plugins\ant\lib
Adding the jcsh jar file to the plugins\ant\lib folder as instructed works.
The problem is that when we do an upgrade of TeamCity to a new version, all the agents are upgraded and we lose the extra JAR.
Since we have 13 build agents spread across 3 servers, it is not really feasible to copy in the extra dependencies after every upgrade.
Do you have any suggestions as to how we can solve the problem? Is there a standard way to upload extensions to the Ant plugin to the central server so that it will always be applied to all agents on all servers?