Skip to content

Jenkins UnmappableCharacterException

Jenkins agent: 3107.v665000b_51092 Jenkins agent OS: Windows 10

Issue

In job log:

[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.nio.charset.UnmappableCharacterException: Input length = 1
    at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:275)
    at java.base/java.lang.String.decodeWithDecoder(String.java:1205)

Solution

Add System Environment Variable

    KEY: JAVA_TOOL_OPTIONS
    VALUE: -Dfile.encoding=UTF8

Restart host