cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

Jenkins pipeline: Could not find a Cypress configuration file, exiting

Open yugrinkov opened this issue 4 years ago • 2 comments

Hi all,

I have an issue with running tests using docker image. Locally on my MacOS workstation everything works fine. But on Jenkins pipeline (Linux) I am getting error: "Could not find a Cypress configuration file, exiting."

Could you please advise in which direction I should to investigate this problem, because currently no having idea what to do. Thanks in advance.

+ ls -la /var/jenkins_home/workspace/my-app/cypress
total 216
drwxr-xr-x   4 jenkins jenkins    127 Jun 28 10:01 .
drwxr-xr-x   7 jenkins jenkins   4096 Jun 28 09:52 ..
drwxr-xr-x   6 jenkins jenkins     71 Jun 28 09:52 cypress
-rwxr-xr-x   1 jenkins jenkins    124 Jun 28 09:52 cypress.json
drwxr-xr-x 324 jenkins jenkins  12288 Jun 28 10:01 node_modules
-rwxr-xr-x   1 jenkins jenkins 186437 Jun 28 10:01 package-lock.json
-rwxr-xr-x   1 jenkins jenkins    786 Jun 28 10:01 package.json
-rwxr-xr-x   1 jenkins jenkins    185 Jun 28 09:52 tsconfig.json
+ pwd
+ docker run -v /var/jenkins_home/workspace/my-app/cypress:/e2e -w /e2e cypress/included:7.6.0
[31mCould not find a Cypress configuration file, exiting.[39m
[31m[39m
[31mWe looked but did not find a [34mcypress.json[31m file in this folder: [34m/e2e[31m[39m

yugrinkov avatar Jun 28 '21 10:06 yugrinkov

I have the same issue on a self-hosted GitHub runner. Any hints to this problem?

Kobe avatar Oct 01 '21 12:10 Kobe

Im getting a similar same error image @Kobe @yugrinkov any ideas or did you were able to solve it?

javierfuentesm avatar Aug 06 '22 15:08 javierfuentesm