|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

I finally fixed it!,
thanks to Tobias Peters indications, and the problem was configuration related but just for the Ubuntu Jenkins distribution.
I checked the main process environment, as Tobias suggested, and it was wrong, something like this:
JENKINS_HOME=/var/lib/jenkinsUPSTART_INSTANCE=UPSTART_JOB=jenkinsTERM=linuxPATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/binPWD=/HOME=/var/lib/jenkinsLD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.45/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.45/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.45/jre/../lib/i386
No LANG, no LANGUAGE, no LC_ALL configured and probably using the default which is not UTF-8.
I noticed this ubuntu process is managed by upstart, so I end up finding that the environment for the process can be changed at /etc/init/jenkins.conf
I added some lines at the script section:
...
script
[ -r /etc/default/jenkins ] && . /etc/default/jenkins
export JENKINS_HOME
+ export LANG=en_US.UTF-8
+ export LANGUAGE=en_US.UTF-8
+ export LC_ALL=en_US.UTF-8
exec start-stop-daemon --start -c $JENKINS_USER --exec $JAVA --name jenkins \
– $JAVA_ARGS -jar $JENKINS_WAR $JENKINS_ARGS --logfile=$JENKINS_LOG
end script
And now it works!
A better solution yet is just to add those three lines at the end of /etc/default/jenkins like this:
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
I am not sure if I need all of them but with these I get an environment such as:
JENKINS_HOME=/var/lib/jenkinsUPSTART_INSTANCE=LANGUAGE=en_US.UTF-8UPSTART_JOB=jenkinsTERM=linuxPATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/binLANG=en_US.UTF-8PWD=/LC_ALL=en_US.UTF-8HOME=/var/lib/jenkinsLD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.45/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.45/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.45/jre/../lib/i386
That checks out files correctly and probably avoids other encoding problems in other plugins.
Thanks for the tips Tobias!