'Start local Android emulator with Shell Script through Jenkins

I want to start my local Android emulator through Jenkins. I use the same command to start my emulator. The following is my command when I start from command prompt

enter image description here

An emulator starts as normal, so I saved this command as a shell script file

enter image description here

Then I run the script through Jankins like this

enter image description here

The following is the console output in Jenkins

enter image description here

It seems working but no emulator appear on the screen. What should I do next?

Thank you in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source