-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins version: 1.534
Parameterized trigger version:2.21
Jenkins' file.encoding: UTF-8
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
- is duplicated by
-
JENKINS-20651 File Parameters type causes the encoding of Chinese incorrect and blocks the build
-
- Closed
-
"Parameters from properties file" can only process properties files which contain Latin-1 or Unicode-encoded characters.
So, You have to encode your property file by using native2ascii.