-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error while running cypress on Jenkins - some dependencies missing #2792
Comments
you need to npm install cypress before start:dev, |
Well, I do it ; here is my jenkinsfile: pipeline {
agent none
stages {
stage('Checkout and Execute Tests ') {
agent { docker { image 'cypress/base:8' } }
steps {
checkout(...)
sh("npm ci")
sh("npm run ci-e2e")
}
}
}
options {
buildDiscarder(logRotator(numToKeepStr:"5"))
timeout(time: 1, unit: "HOURS")
}
} with package.json containing scripts: { "ci-e2e": "start-server-and-test start http://localhost:4000 cypress:run",` } and "devDependencies": {
...
"cypress": "^3.1.1",
...
} |
The problem came from our jenkins configuration ; DISPLAY environment property was set, which created some trouble with the following line: Line 43 in 24e9315
|
@euZebe you are a life saver. I spent today about 10 hours until I found this, tried and it worked. Now this should be documented directly in Cypress for other to know that this may be the issue. cmd that I'm executing from jenkins is:
where |
Existing issue for |
Current behavior:
I am trying to launch my cypress tests from Jenkins, using docker image cypress/base:8. Here are a few lines of my log and the error I get on
cypress run
instruction:What is that --smoke-test option ?
Anyone, any idea why it could fail ?
The text was updated successfully, but these errors were encountered: