• Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None
    • German Win XP, no special email-plugin, SVN plugin, Ant-based jobs, Jenkins as a webapp under Tomcat.

      This is a project that has developers from different continents. We need English in messages and mails.

      Web GUI:
      manage Jenkins,
      configure system,
      (email sending is duly configured),
      press "Test configuration by sending e-mail to System Admin Address"

      Result: A test mail is received that is English. Excellent!

      Now we configure a job with "Send separate e-mails to individuals who broke the build".
      The build breaks.

      Result expected: A mail gets sent to the people who potentially broke the build in English.
      Result seen: A mail gets sent to the people who potentially broke the build in German.

      This ticket can be closed if I can control the language in which both these mails are sent.

      This is some kind of a sybling ticket to https://issues.jenkins-ci.org/browse/JENKINS-9666 ,
      "Test mail should be sent in same language as real mails.".

          [JENKINS-9668] Language control for "build broke" mails.

          Workaround:

          Background:

          We run Jenkins as a webapp under Tomcat 7.0.12, which again is run as a service under Windows.

          We can have the "tail wag the dog", that is, configure the entire application server (Tomcat)
          to how a single web application (Jenkins) needs it.

          Plan: Configure the entire Tomcat so it's default locale is en_US.

          Howto, in my case:

          I start ...\apache-tomcat-7.0.12\bin\tomcat7w.exe
          I navigate to the "Java" tab
          I add two lines to the Java Options, namely

          -Duser.language=en
          -Duser.region=US

          I hit "Apply"
          I restart the service "Apache Tomcat 7".

          Andreas Krüger added a comment - Workaround: Background: We run Jenkins as a webapp under Tomcat 7.0.12, which again is run as a service under Windows. We can have the "tail wag the dog", that is, configure the entire application server (Tomcat) to how a single web application (Jenkins) needs it. Plan: Configure the entire Tomcat so it's default locale is en_US. Howto, in my case: I start ...\apache-tomcat-7.0.12\bin\tomcat7w.exe I navigate to the "Java" tab I add two lines to the Java Options, namely -Duser.language=en -Duser.region=US I hit "Apply" I restart the service "Apache Tomcat 7".

          Daniel Beck added a comment -

          Not a defect: You're starting the Jenkins service with German locale, which is the default locale used inside Jenkins (e.g. parts of build logs as well).

          Daniel Beck added a comment - Not a defect: You're starting the Jenkins service with German locale, which is the default locale used inside Jenkins (e.g. parts of build logs as well).

            Unassigned Unassigned
            andreas_krueger Andreas Krüger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: