Jenkins - unexpected EOF while looking for matching `"' Build step 'Execute shell' marked build as failure

2,217 views
Skip to first unread message

江南

unread,
Jul 4, 2017, 9:21:38 AM7/4/17
to Jenkins Users

I have specified C:\Program Files\Git\bin\sh.exe in the Jenkins Global Configuration Shell. And following is my command to run the cucumber feature

pwd
cd C:\"Test folders"
pwd
bundle exec cucumber features\test.feature

                  when I click on Build Now the test failed and I am seeing the following error can someone please tell me what went wrong? Thanks

         unexpected EOF while looking for matching `"' Build step 'Execute shell' marked build as failure

Mark Waite

unread,
Jul 4, 2017, 9:26:25 AM7/4/17
to Jenkins Users
The git bash shell installed on Windows is not supported (or tested) as a Jenkins global configuration shell.

Jenkins in general assumes that the term "shell" is used on Unix-like environments (Linux, FreeBSD, OpenBSD, Solaris, HP-UX, etc.), not on Windows.

Windows environments should use the Windows command processor.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7583294d-3915-4d20-889b-e9e0864c0eab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Björn Pedersen

unread,
Jul 5, 2017, 5:34:58 AM7/5/17
to Jenkins Users


Am Dienstag, 4. Juli 2017 15:21:38 UTC+2 schrieb 江南:

I have specified C:\Program Files\Git\bin\sh.exe in the Jenkins Global Configuration Shell. And following is my command to run the cucumber feature

pwd
cd C:\"Test folders"
                             ^^ This " is probably considered as escaped, so the second one is unmatched

Did you try C:\\"....."  ?

Björn
 
 
Reply all
Reply to author
Forward
0 new messages