# Failure to run eggplant on Jenkins Pipeline script

**URL:** <https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052>\
**Category:** Uncategorized\
**Created:** [August 5, 2024, 4:12am UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052 "2024-08-05T04:12:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siti](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/s/f0a364/32.png) [@Siti](https://forums.eggplantsoftware.com/u/Siti)\
**Post date:** [August 5, 2024, 4:12am UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052/1 "2024-08-05T04:12:49Z")

</div>

Hello team,

I have jenkins slave that uses Ubuntu operating system.

When setting up my jenkins pipeline, I executed the eggplant script with the following command:  
sh ‘runscript /test.suite/Script/test.script’

it turns out error, that says:  
Uncaught exception NSWindowServerCommunicationException, reason: Unable to connect to X Server ‘:0.0’

hope you can help.  
Thank you

---

<div class="post-metadata">

**Author:** ![Karsten](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@Karsten](https://forums.eggplantsoftware.com/u/Karsten)\
**Post date:** [August 6, 2024, 1:53pm UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052/2 "2024-08-06T13:53:39Z")

</div>

Hey @Siti ,  
With just this error line its a not possible to provide a solution.  
Kindly ask you to file a ticket with our support team to investigate further. Eggplant Support [eggplant.support@keysight.com](mailto:eggplant.support@keysight.com)  
Include the following details.

- Eggplant functional version
- Which Ubuntu system do you use?
- Attach the Eggplant functional log files and the log file from the script run.
- You can also attached the jenkins command line output.

Cheers,  
Karsten

---

<div class="post-metadata">

**Author:** ![chrisbryant](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/chrisbryant/32/627_2.png) [@chrisbryant](https://forums.eggplantsoftware.com/u/chrisbryant)\
**Post date:** [June 12, 2026, 2:37am UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052/3 "2026-06-12T02:37:27Z")

</div>

> [@Siti](#):
>
> Uncaught exception NSWindowServerCommunicationException, reason: Unable to connect to X Server ‘:0.0’

Out of curiosity, how is your Jenkins agent launched (systemd service, SSH, or Java Web Start)? Is it a pipeline job or a freestyle project?

I experimented briefly with a headless Jenkins implementation on an Ubuntu server (I was also running Eggplant Functional on an Ubuntu workstation). I no longer use Jenkins but still enjoy EPF on Ubuntu LTS.

Was your question ever answered? If I had to guess, this is related to running on a headless implementation with no GUI processes running. I tried Xvfb (Virtual Framebuffer) and installing X Server (enabling X11 Forwarding in my SSH configuration).

Ultimately the framework did not fit my organization’s needs, so I never went further. Would love to hear what the resolution on your end was as I feel implementation of Eggplant products on GNU/Linux systems should definitely be ubiquitous and fixes for issues like these easily applied!

---

<div class="post-metadata">

**Author:** ![nehal062karkera](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/n/439d5e/32.png) [@nehal062karkera](https://forums.eggplantsoftware.com/u/nehal062karkera)\
**Post date:** [June 26, 2026, 11:24am UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052/4 "2026-06-26T11:24:18Z")

</div>

Hello,

There’s no X server at `:0.0 `run it with a virtual display

xvfb-run -a sh runscript /test.suite/Script/test.script

Or set DISPLAY only if a real desktop session exists.

---

<div class="post-metadata">

**Author:** ![chrisbryant](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/chrisbryant/32/627_2.png) [@chrisbryant](https://forums.eggplantsoftware.com/u/chrisbryant)\
**Post date:** [June 26, 2026, 3:16pm UTC](https://forums.eggplantsoftware.com/t/failure-to-run-eggplant-on-jenkins-pipeline-script/14052/5 "2026-06-26T15:16:36Z")

</div>

Now that I’m starting to test out Eggdrive and command-line use, I discovered `libgnustep-headless`.

```auto
runscript ~/Documents/Scripts/test.script -GSBackend libgnustep-headless

```
