DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Juha Autero
Juha Autero

Posted on

unexpected char: 0xFFFF

Since I didn't find anything useful Googling, I decided write this short note.

When you get "unexpected char: 0xFFFF" from your Jenkinsfile (or any Groovy script), it basically means "Parse Error: Unexpected End of File". This is because Groovy's parser is implemented with Antlr that uses Unicode noncharacter U+0FFFF (link to pdf) to signal end of file.

In my case the problem was that I hadn't quoted a string. In retrospect the issue is obvious. When specifying environment variables, the values has to follow Groovy syntax i.e. strings need quotation marks unlike in shell.

Oldest comments (1)

Collapse
 
hoseincode profile image
seyed hosein alhoseiny

hi i have not any codes in 65 line in my codes. what this error relate to this?
I uploaded my codes and that ambiguous error

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.