Хочу собрать сборку в дженкинсе. Проект на градле
При инициализации хромдрайвера без интерфейса все собирается
WebDriverManager.chromedriver().driverVersion("114").setup(); ChromeOptions options = new ChromeOptions(); options.addArguments("--no-sandbox", "--headless", "--disable-dev-shm-usage"); driver = new ChromeDriver(options);
Если без options, но вот такая ошибка
Test1 > initializationError FAILED
org.openqa.selenium.SessionNotCreatedException at ProtocolHandshake.java:140
Test2 > initializationError FAILED
org.openqa.selenium.SessionNotCreatedException at ProtocolHandshake.java:140
2 tests completed, 2 failed
Task :test FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:test’.
There were failing tests. See the report at: file:///var/jenkins_home/workspace/test/build/reports/tests/test/index.html
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 19s
4 actionable tasks: 4 executed
Build step ‘Execute shell’ marked build as failure
[test] $ /var/jenkins_home/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure_jenkins/bin/allure generate /var/jenkins_home/workspace/test/build/allure-results -c -o /var/jenkins_home/workspace/test/allure-report
Report successfully generated to /var/jenkins_home/workspace/test/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
Finished: FAILURE
Сборка в дженкинсе через шелл
chmod +x gradlew
./gradlew clean test
Ставить драйвер через System,setPropery пробовал
В вебдрайвер менеджер ставлю 114 версию хрома, но я пробовал это убирать - безрезультатно