Hi,

 Have you configured that java setup in that particular slave? Have you run 
the same command manually? Can you add "java -version" command in your sh 
and check what java version is installed? 

 On the other hand, Jenkins provide some specific configuration about java, 
you can configure those jdk versions in the global settings, and set what 
java version you need to use in your jenkins job:


   -  Global settings - http://yourJenkinsUrl/configure - JDK - JDK 
   Installations ... - Add JDK
   -  Jenkins job configuration - 
   http://yourJenkinsUrl/job/YourJenkinsJob/configure - JDK - Choose what 
   JDK version
   

  It might help you

Cheers

On Monday, 7 September 2015 05:11:07 UTC+2, thil...@wso2.com wrote:
>
> bump
>
> On Friday, September 4, 2015 at 10:25:57 AM UTC+5:30, thil...@wso2.com 
> wrote:
>>
>> HI
>>
>> im building a web app using jenkins.
>>
>> It has it own server and only need to run .sh file after it build. 
>>
>> Jenkins build a .tag.gz file i use terminal command plugin [1] to extract 
>> and execute the .sh file but it says java home not set 
>>
>> need help to execute it after build
>>
>> [1] - https://wiki.jenkins-ci.org/display/JENKINS/XShell+Plugin
>>
>> thanks.
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d5d2c899-ddc1-4f53-adc9-da146f006c58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to