Use the Xvfb Wrapper
Xvfb is an X server that implements the X11 display server protocol and can run on machines that don't have physical input devices or a display.
Set Up a VM Build Executor and a Build Executor Template with Xvfb
Before you can use Xvfb in a build step, your organization administrator
                must first create a build executor template with the minimum required software and
                then add a VM build executor that uses the build executor template. Your
                organization administrator can create a new build executor template or use any
                existing Oracle Linux 7 build executor template.
                        
                           
                     
                     
                     Note:
To find your organization administrator, click Contacts under your user profile. Your administrator, or a list of administrators, will display.See Create and Manage Build Executor Templates in Administering Visual Builder Studio.
After the organization administrator adds a VM build executor to the build executor template, you can create and configure a job to use that build executor template and Xvfb.