Failure to run eggplant on Jenkins Pipeline script

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

1 Like

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
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

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!