Hudson SSH: Automatic command execution before Java version check

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson SSH: Automatic command execution before Java version check

tiainpa
Hi,

I'm trying to connect one Linux slave with SSH to our Linux Hudson server. The connection itself is established, but the slave has old Java version 1.4.2 and Hudson cannot find newer one from the slave by itself.

I noticed that if I login to the slave manually via SSH I need to use one command in order to get 1.6.0 Java version into use, but how could I make this procedure automatic for Hudson?

I modified my .bash-profile file but this seems to only work with the manual SSH connection - the command was issued as soon as I logged in to the system.

Thank you very much in advance!

Best Regards,
-Pasi
Reply | Threaded
Open this post in threaded view
|

Re: Hudson SSH: Automatic command execution before Java version check

Sami Tikka
Try modifying your .bashrc. If it fails, read the bash man page paying  
close attention to the final section on files.

-- Sami

tiainpa <[hidden email]> kirjoitti 24.2.2010 kello 13.31:

>
> Hi,
>
> I'm trying to connect one Linux slave with SSH to our Linux Hudson  
> server.
> The connection itself is established, but the slave has old Java  
> version
> 1.4.2 and Hudson cannot find newer one from the slave by itself.
>
> I noticed that if I login to the slave manually via SSH I need to  
> use one
> command in order to get 1.6.0 Java version into use, but how could I  
> make
> this procedure automatic for Hudson?
>
> I modified my .bash-profile file but this seems to only work with  
> the manual
> SSH connection - the command was issued as soon as I logged in to the
> system.
>
> Thank you very much in advance!
>
> Best Regards,
> -Pasi
> --
> View this message in context: http://n4.nabble.com/Hudson-SSH-Automatic-command-execution-before-Java-version-check-tp1567340p1567340.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson SSH: Automatic command execution before Java version check

tiainpa
Thanks for the heads up Sami!

I didn't get it working via .bashrc (didn't even bother to look for man pages) but I finally noticed the search path Hudson uses to locate Java from the connection log, and it all boiled down to copying the JDK to ~/hudson/jdk.

Seems so simple now that I think about it but somehow I missed this possibility in the first place.

-Pasi