that did the trick! version 2.7 lets you set CVS_RSH as an Advanced option 
under Source Code Management in the job config.

many thanks!  was really butting my head against this.

-cynsa

On Sunday, January 20, 2013 9:10:21 AM UTC-8, michael....@gmail.com wrote:
>
> Have you tried updating to a newer version of the CVS plugin? It's got 
> built in support for CVS :ext: connections with key files without having to 
> define environment variables to the host operating system.
>
> Thanks,
> Michael
>
>
> On Saturday, January 12, 2013 1:05:42 AM UTC, Cynsa Bonorris wrote:
>>
>> I'm trying to switch from :pserver: to :ext: and use ssh for secure 
>> checkouts. I've set up my keys and am connecting just fine with no password 
>> to the cvs server as my Jenkins/cvs user (builder).
>>
>> However, Jenkins is giving me the following error on checkout, though 
>> when I paste the cvs command into a terminal as builder, the checkout 
>> completes just fine.
>>
>> Started by an SCM change
>> Building on master in workspace /var/lib/jenkins/workspace/foo-co-test
>> [foo-co-test] $ cvs -Q -z3 -d :ext:builderXXXXXXXXXXXX:/cvsrepo/bmi co -P -r 
>> foo-branch -f configuration 
>> XXXXXXXXXX: Connection refused
>> cvs [checkout aborted]: end of file from server (consult above messages if 
>> any)
>> FATAL: CVS failed. exit code=1
>>
>>
>> (I've obscured our cvs server info in the above.) 
>>
>>
>> in my Jenkins master Global Properties I have the envar CVS_RSH with the 
>> value /usr/bin/ssh
>>
>> but when I use groovyscript to display the envars, I don't see CVS_RSH 
>> populated:
>>
>>
>> TERM=xterm-256color
>> SHELL=/bin/bash
>> SHLVL=3
>> XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
>> PATH=/sbin:/usr/sbin:/bin:/usr/bin
>> USER=builder
>> PWD=/
>> HOME=/build/buildsystem
>> LOGNAME=builder
>> _=/usr/bin/java
>> NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
>> LD_LIBRARY_PATH=/usr/java/jdk1.6.0_27/jre/lib/i386/server:/usr/java/jdk1.6.0_27/jre/lib/i386:/usr/java/jdk1.6.0_27/jre/../lib/i386
>> LANG=en_US.UTF-8
>> Result: {TERM=xterm-256color, SHELL=/bin/bash, SHLVL=3, 
>> XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt, 
>> PATH=/sbin:/usr/sbin:/bin:/usr/bin, USER=builder, PWD=/, 
>> HOME=/build/buildsystem, LOGNAME=builder, _=/usr/bin/java, 
>> NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, 
>> LD_LIBRARY_PATH=/usr/java/jdk1.6.0_27/jre/lib/i386/server:/usr/java/jdk1.6.0_27/jre/lib/i386:/usr/java/jdk1.6.0_27/jre/../lib/i386,
>>  LANG=en_US.UTF-8}
>>
>>
>> any assistance would be appreciated. how do I force Jenkins to export the 
>> CVS_RSH envar? I think that might be the problem, if groovyscript output is 
>> to be believed.
>>
>>
>> -cynsa
>>
>>

Reply via email to