Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19990

When load parameters from a properties file which file encoding is UTF-8, parameters‘ value is not right.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins version: 1.534
      Parameterized trigger version:2.21
      Jenkins' file.encoding: UTF-8
    • Similar Issues:

      Description

      I have property file notification_params.properties, and the content is:

      MESSAGE=测试
      RECEIVERS=test123@example.com

      I use parameterized-trigger plugin to load parameters from that file and trigger my Test_Notification job. And in my Test_Notification job, I echo these parameters that passed by parameterized-trigger. I got the wrong value of $MESSAGE. But the value of $RECEIVERS is right。

      And I use enca command to check the file encoding of notification_params.properties, the result is:
      Universal transformation format 8 bits; UTF-8

        Attachments

          Issue Links

            Activity

            sfeng Song Frank created issue -
            scm_issue_link SCM/JIRA link daemon made changes -
            Field Original Value New Value
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            ikedam ikedam made changes -
            Link This issue is duplicated by JENKINS-20651 [ JENKINS-20651 ]
            ikedam ikedam made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 151512 ] JNJira + In-Review [ 207027 ]

              People

              • Assignee:
                huybrechts huybrechts
                Reporter:
                sfeng Song Frank
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: