Отсутствуют зависимости при запуске Cypress на Jenkins - PullRequest
0 голосов
/ 16 июня 2020

Я пытаюсь запустить cypress на jenkins на удаленном сервере (Платформа: linux (Alpine Linux - 3.7.0). Каждый раз, когда я нажимаю «Создать», появляется следующее сообщение:

+ npm install
npm WARN cypress_test@1.0.0 No repository field.

up to date in 1.217s
[Pipeline] sh (Run tests)
+ npx cypress run
It looks like this is your first time using Cypress: 4.7.0

[?25l[17:51:40]  Verifying Cypress can run /root/.cache/Cypress/4.7.0/Cypress [started]
[17:51:41]  Verifying Cypress can run /root/.cache/Cypress/4.7.0/Cypress [failed]
[?25hCypress failed to start.

This is usually caused by a missing library or dependency.

The error below should indicate which dependency is missing.

https://on.cypress.io/required-dependencies

If you are using Docker, we provide containers with all required dependencies installed.

----------

spawn /root/.cache/Cypress/4.7.0/Cypress/Cypress ENOENT

----------

Platform: linux (Alpine Linux - 3.7.0)
Cypress Version: 4.7.0
[?25h[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE

Официальная версия Cypress do c https://docs.cypress.io/guides/guides/continuous-integration.html#Advanced -setup не имеет ответа, который подходит для меня.

Какая зависимость мне не хватает? xvfb не помог.

...