-
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
Jenkins Error "Error: spawn cmd ENOENT" #3912
Comments
Looks like this error code is coming from the
In your Jenkins job, do you just have |
Hi and thanks for the reply. I could try running it inside of a power shell command instead |
Can you share your |
In the pic, I tried switching it to powershell (instead of windows batch command) and got the same result |
Is your |
here's the script: It gets me to the same spot (error) |
I find it odd that Cypress runs correctly the first time, but after that it continues to fail. (If I change the user that the jenkins service uses to run as to something new, it will run once, and then continue to fail.) |
@flotwig could you explain how you tracked down the location of this issue? I'm not a node guru and this could definitely be beneficial in the future. |
@akeresztesgh Yes, definitely a weird issue, not sure why exactly it's happening though Sure, I can explain:
|
@flotwig thanks! |
@flotwig as a test, I moved It's odd because I'm certain that |
Closing as resolved. Please comment if you are still having this issue and we will consider reopening. |
@akeresztesgh were you able to solve this issue in another way? I just had the exact same thing and solved exactly as you described by moving cmd to another folder. I am running the latest 3.3.1 |
@JorgeRamosZavala I haven't found a different solution yet. |
@akeresztesgh @JorgeRamosZavala Do you guys have |
Any updates here? |
Not sure if it's relevant but I'm having the same error when trying to integrate Cypress with Percy on macos:
|
Yeah it got fixed for me adding the string to the PATH variable. I had it like this: |
|
Since nobody has reported having this issue after adding Workaround
If anyone has this issue and |
Still facing the same issue. |
@php7134 If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Hi, I'm running Cypress on Jenkins in Windows and am experiencing strange behavior. When I first setup Cypress to run in a build, it ran fine, but every time after that, it fails with
Error: spawn cmd NOENT
Also, I changed the user that Jenkins runs as and Cypress ran only the first time the build ran, but after the first run, I get the same errors.
Current behavior:
Opening Cypress...
Desired behavior:
I would like Cypress to run my tests inside of headless mode.
Steps to reproduce: (app code and test code)
I don't have a public repo to recreate this. If need, I could let somebody take a look at my build server. I'm just executing
./node_modules/.bin/cypress run
from a windows batch command inside of Jenkins.Versions
Windows Server 2016
Cypress 3.2.0
Jenkins latest
The text was updated successfully, but these errors were encountered: