Ant cvs
task invokes cvs.exe
command line from PATH
so if everything works properly from command line, there is (almost) no reason it will fail from Ant.
Here is a checklist with points to verify:
CVSROOT
must contain username and specifyext
protocol,:ext:username@cvserver.domain.ldt:/path/to/repository
CVS_RSH
must point toplink.exe
with absolute file path and you have to ensure it will use SSH protocol- Your SSH private key must have been loaded into Pageant for the same user session as the user running Ant script
If it does not help, please provide more details about your cvs
task options and your workstation setup.
When running without any user session opened and Pageant cannot help, often for continuous integration tools, a better option is to pass all arguments like username and private key file to plink
directly in CVS_RSH
variable:
CVS_RSH="C:\path\to\plink.exe -batch -ssh -l username -i C:\path\user\ssh-privatekey.ppk"
Of course, in such a case, your private key file must not be protected with a passphrase.