LTS Container 2.303.1 uses OpenJDK with wrong file encoding

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker
    • Component/s: docker
    • Environment:
      Docker image from jenkins/jenkins:lts

      The openjdk-11 used in the Docker build has the default file encoding set to ANSI instead of UTF-8. This is from jenkins systemInfo:Ā 

      sun.jnu.encoding ANSI_X3.4-1968

      As we use non ANSI file names, this breaks Jenkins:

       WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID f755cad7-a303-403d-9dde-3e9296ce302d
      java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters ...

      Because the JAVA_OPTS parameterĀ 

      -Dsun.jnu.encoding=UTF-8

      doesn't work, we can't fix this. So we can't use the current Jenkins LTS container.

      SeeĀ https://github.com/AdoptOpenJDK/openjdk-docker/issues/105

            Assignee:
            Carlos Sanchez
            Reporter:
            Sascha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: