Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Stephen Connolly
You shouldn't. Can you send some more details of the node that the job is running on (os & java version) Downgrading to 0.1 will be less useful as the tomcat-native code is still there, just only used as a last resort if the JNR tricks dont Can you send the full portion of the console log that ha

Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Burkhard Reffeling
After downgrading to 0.1 and installing tomcat native (which was fun!) I got this: [ssh-agent] Using credentials jenkins FATAL: [ssh-agent] Unable to start agentjava.lang.NullPointerException at com.cloudbees.jenkins

Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Burkhard Reffeling
Haha ;) I've got version 1.0 and am getting: FATAL: [ssh-agent] Unable to start agentjava.lang.UnsatisfiedLinkError : no tcnative-1 in java.library.path, no libtcnative-1 in java.library.path(/usr/lib/jvm/java-6-oracle/j

Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Stephen Connolly
decided to call it 1.0 ;-) On 1 November 2012 12:44, Stephen Connolly wrote: > I actually have the ssh-agent plugin version 0.2 now no-longer requiring > tomcat-native (except perhaps on windows) > > > On 31 October 2012 20:44, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > >> You

Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Burkhard Reffeling
Thanks, I'll give it a spin tonight (don't use windows, so shouldn't be a problem) * * *Burkhard Reffeling* Software Engineer On 1 November 2012 12:44, Stephen Connolly wrote: > I actually have the ssh-agent plugin version 0.2 now no-longer requiring > tomcat-native (except perhaps on windows

Re: Script behaves differently when run through Jenkins

2012-11-01 Thread Stephen Connolly
I actually have the ssh-agent plugin version 0.2 now no-longer requiring tomcat-native (except perhaps on windows) On 31 October 2012 20:44, Stephen Connolly wrote: > You might want to try out the ssh agent plugin... Though it is a tad rough > and ready. It will work if you install tomcat-native

Re: Script behaves differently when run through Jenkins

2012-10-31 Thread Stephen Connolly
You might want to try out the ssh agent plugin... Though it is a tad rough and ready. It will work if you install tomcat-native on all the build nodes that need the agent On Wednesday, 31 October 2012, Burkhard Reffeling wrote: > So I added the following line to the top of my script: > cd $HOME

Re: Script behaves differently when run through Jenkins

2012-10-31 Thread Burkhard Reffeling
So I added the following line to the top of my script: cd $HOME/.ssh && ls -al && cat id_rsa.pub Looks fine to me: [workspace] $ /bin/sh -xe /tmp/hudson7533718270802434100.sh + cd /var/lib/jenkins/.ssh + ls -al total 24 drwx-- 2 jenkins jenkins 4096 Oct 30 23:48 . drwxr-xr-x 9 jenkins jenk

Re: Script behaves differently when run through Jenkins

2012-10-31 Thread Vincent Latombe
Hi, you should check that the HOME variable is defined and accessible to the Jenkins process (or to the slave that is executing the task). I remember having the same kind of issue running git clients. Hope that helps, Vincent 2012/10/31 Burkhard Reffeling > Hi all, > > I've got a Jenkins bui