Sorry for long silence. I resolved the problem by typing "xhost +SI:localuser:jenkins" and using "-platform minimal". Thank you all for your help!