I got solution 
 
First I designed on job and run shell commands 
whoami
printenv

Result: 
anonymous 
printenv result did now show Display =:0 

Then I export DISPAY =:0 from terminal (master user) 
and then restart Jenkins with (master user) 

it worked :)





On Sunday, 6 September 2015 13:29:51 UTC+2, Kirshan Luhana wrote:
>
> Thanks, I already checked. 
> Actually I am new to Jenkins, did not understand VNC server stuff and I 
> have very fresh linux OS with only jenkins installed (Latest) and then I 
> tried to run emulator and it fails.
>
>
> On Sunday, 6 September 2015 13:20:25 UTC+2, Victor Martinez wrote:
>>
>> Hi,
>>
>>  There is already a closed jira ticket about that issue:
>>  
>>   - https://issues.jenkins-ci.org/browse/JENKINS-6912
>>
>>  It might be related, otherwise can you please raise a ticket and explain 
>> your current setup (jenkins version, java version, plugin list and their 
>> versions and your job setup?)
>>
>> Thanks
>>
>> On Sunday, 6 September 2015 01:06:17 UTC+2, Kirshan Luhana wrote:
>>>
>>> But when I run this on command line it working fine.
>>>
>>> Started by user anonymous <http://localhost:8080/user/null>
>>> Building in workspace /home/jenkins/workspace/emulatorTest
>>> $ /home/jenkins/tools/android-sdk/tools/android list target
>>> [android] Using Android SDK: /home/jenkins/tools/android-sdk
>>> [android] Creating Android AVD: 
>>> /home/jenkins/workspace/emulatorTest/.android/avd/hudson_en-US_640_WXGA720_android-23_tdsltest1.avd
>>> [android] /home/jenkins/tools/android-sdk/tools/android create avd -f -a -s 
>>> WXGA720 -n hudson_en-US_640_WXGA720_android-23_tdsltest1 -t android-23
>>>
>>> $ /home/jenkins/tools/android-sdk/platform-tools/adb start-server
>>>
>>> * daemon not running. starting it now on port 8297 *
>>> * daemon started successfully *
>>> $ /home/jenkins/tools/android-sdk/platform-tools/adb start-server
>>> $ /home/jenkins/tools/android-sdk/tools/emulator -snapshot-list -no-window 
>>> -avd hudson_en-US_640_WXGA720_android-23_tdsltest1
>>> [android] Starting Android emulator and creating initial snapshot
>>> $ /home/jenkins/tools/android-sdk/tools/emulator -ports 8295,8296 -prop 
>>> persist.sys.language=en -prop persist.sys.country=US -avd 
>>> hudson_en-US_640_WXGA720_android-23_tdsltest1 -no-snapshot-load 
>>> -no-snapshot-save -wipe-data
>>> SDL init failure, reason is: No available video device
>>>
>>> [android] Emulator did not appear to start; giving up
>>> $ /home/jenkins/tools/android-sdk/platform-tools/adb disconnect 
>>> localhost:8296
>>> [android] Stopping Android emulator
>>> $ /home/jenkins/tools/android-sdk/platform-tools/adb kill-server
>>>
>>> Finished: NOT_BUILT
>>>
>>>
>>> On Saturday, 5 September 2015 04:39:42 UTC+2, Kirshan Luhana wrote:
>>>>
>>>> Please solve this bug 
>>>> I installed fresh copy of linux mint , jenkins and Android  emulator 
>>>> plugin and when trying to run emulator , I am getting error 
>>>>  
>>>>
>>>> *SDL init failure, reason is: No available video device*
>>>>
>>>>
>>>> I alrady googled a lot , and installed sudo apt-get install ia32-libs-sdl
>>>>
>>>>
>>>> but no good solution.
>>>>
>>>> I have HP envy Laptop and in bios visualization on. 
>>>>
>>>>
>>>>
>>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b8d23f8a-7527-4377-9e45-2a76be30e1a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to