• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • workflow-cps-plugin
    • None
    • Tested with a fresh, default install of Jenkins 2.42

      A Multibranch Pipeline fails reading a Jenkinsfile if the file is encoded in UTF-8 and includes a BOM (Byte order mark).

      The error depends on the content of the file, but often shows as a variant of 'No such DSL method XX found'.

      If the BOM is removed, the file works fine.

        1. Jenkinsfile
          0.0 kB
        2. Jenkinsfile
          0.1 kB

          [JENKINS-41476] Jenkinsfile fails with BOM

          Lars Skjærlund created issue -
          Andrew Bayer made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]
          Éric Louvard made changes -
          Attachment New: Jenkinsfile [ 41624 ]
          Andrei Mitin made changes -
          Comment [ Version 2.46.3 has the same problem ]
          Harald Albers made changes -
          Attachment New: Jenkinsfile [ 47749 ]
          Harald Albers made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            Unassigned Unassigned
            larsskj Lars Skjærlund
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: