Here is the command you used:

        cvs -d SDR@lx-cvs:/CVS/dev checkout -P -N -D '29 May 2013 11:38:14 
+0200' vcs/c/arm-elf-gcc

Here is the command Jenkins used:

        cvs checkout -P -D '29 May 2013 18:11:37 +0200' -d workspace 
vcs/c/arm-elf-gcc 

You specified a `-d` parameter to the cvs command itself. That overrides the 
$CVSROOT environment variable.  This makes a big difference in how that CVS 
command will work.

Try the command line again, and go into the working directory and run the 
command just like Jenkins did. See if you get the same error. If you do, you 
might need to reset Jenkins CVSROOT to reflect what you set '-d' to: 
SDR@lx-cvs:/CVS/dev

--
David Weintraub
qazw...@gmail.com

================================================
Sure, call me crazy. They called Eddie Antar crazy too, but
look at these low, low prices on these name brand appliances.

On May 29, 2013, at 12:33 PM, Stijn <stijn.deroovanma...@gmail.com> wrote:

> Hi,
> 
> I try to use cvs with jenkins in Debian, but I'm unable to access the cvs 
> server.
> 
> Build error message:
> 
> Started by user anonymous
> Building in workspace /var/lib/jenkins/jobs/pr_7611/workspace
> cvs checkout -P -D 29 May 2013 18:11:37 +0200 -d workspace vcs/c/arm-elf-gcc 
> ERROR: CVS Authentication failed: null
> org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection 
> failed.
>       at 
> org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)
>       at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
>       at java.lang.Thread.run(Thread.java:679)
> Caused by: com.jcraft.jsch.JSchException: invalid privatekey: 
> /home/jenkins/.ssh/identity
>       at com.jcraft.jsch.IdentityFile.<init>(IdentityFile.java:302)
>       at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:135)
>       at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:130)
>       at com.jcraft.jsch.JSch.addIdentity(JSch.java:224)
>       at com.jcraft.jsch.JSch.addIdentity(JSch.java:218)
>       at 
> org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)
>       ... 2 more
> ERROR: Cvs task failed
> Finished: FAILURE
> 
> 
> However, if I do following on a command line, it works (as user jenkins):
> 
> jenkins@p-hplj1320:/tmp$ cvs -d SDR@lx-cvs:/CVS/dev checkout -P -N -D '29 May 
> 2013 11:38:14 +0200' vcs/c/arm-elf-gcc
> cvs server: Updating vcs/c/arm-elf-gcc
> cvs server: Updating vcs/c/arm-elf-gcc/arm-elf
> cvs server: Updating vcs/c/arm-elf-gcc/arm-elf/bin
> U vcs/c/arm-elf-gcc/arm-elf/bin/ar
> U vcs/c/arm-elf-gcc/arm-elf/bin/as
> U vcs/c/arm-elf-gcc/arm-elf/bin/c++
> U vcs/c/arm-elf-gcc/arm-elf/bin/g++
> U vcs/c/arm-elf-gcc/arm-elf/bin/gcc
> U vcs/c/arm-elf-gcc/arm-elf/bin/ld
> ^Ccvs [checkout aborted]: received interrupt signal
> cvs [checkout aborted]: received interrupt signal
> 
> 
> Why is Jenkins complaining my private key is invalid, while with the command 
> line it works?
> 
> Kind regards and thanks in advance!
> Stijn.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to