There is a repository with an application that has a gui interface (qt) for which tests are written. I want to run them using jenkins , but all the time the tests crash with a similar error:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. I installed the Xvfb plugin and registered the global settings for it as in the instructions . I use multibranch and run through Jenkinsfile , so I use wrap :
pipeline { agent any stages { stage('build') { steps { sh ''' rm build -rf git submodule init && git submodule update && mkdir build && cd build && cmake .. && cmake --build . ''' } } stage('test') { steps { wrap([$class: 'Xvfb']) { sh ''' cd build && cmake --build . --target test ''' } } } } } What am I wrong?