ошибка при загрузке общих библиотек: libgconf-2.so.4: не удается открыть файл общего объекта: Такого файла или каталога нет

#selenium #maven #jenkins

Вопрос:

Я запускаю тесты selenium с junit , используя команду : mvn test-Dtest=fonctionnelTesting , на моей локальной машине все работает так, как ожидалось, как только я попытаюсь сделать то же самое на сервере Дженкинса, я получу :

 [INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running net.continuumsecurity.fonctionnelTesting
2021-09-30 15:34:48,337 [main] INFO  net.continuumsecurity.fonctionnelTesting  - Created driver
/var/lib/jenkins/workspace/test/Arkevia-syportal-CICD/zap-webdriver-master/drivers/chromedriver-linux64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Sep 30, 2021 3:35:09 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)

2021-09-30 15:35:09,728 [main] INFO  net.continuumsecurity.fonctionnelTesting  - Created driver
/var/lib/jenkins/workspace/test/Arkevia-syportal-CICD/zap-webdriver-master/drivers/chromedriver-linux64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
Sep 30, 2021 3:35:29 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)

2021-09-30 15:35:29,770 [main] INFO  net.continuumsecurity.fonctionnelTesting  - Created driver
/var/lib/jenkins/workspace/test/Arkevia-syportal-CICD/zap-webdriver-master/drivers/chromedriver-linux64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Sep 30, 2021 3:35:49 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)
2021-09-30 15:35:49,820 [main] INFO  net.continuumsecurity.fonctionnelTesting  - Created driver
/var/lib/jenkins/workspace/test/Arkevia-syportal-CICD/zap-webdriver-master/drivers/chromedriver-linux64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
Sep 30, 2021 3:36:09 PM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)
2021-09-30 15:36:09,842 [main] INFO  net.continuumsecurity.fonctionnelTesting  - Created driver
/var/lib/jenkins/workspace/test/Arkevia-syportal-CICD/zap-webdriver-master/drivers/chromedriver-linux64: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory .
 

У меня нет доступа к серверу Дженкинса , чтобы установить на него chrome, есть ли какая-либо альтернатива .