Continuum
  1. Continuum
  2. CONTINUUM-2102

Unable to configure subject line for email notifications

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.1 (Alpha)
    • Fix Version/s: 1.3.2 (Beta)
    • Component/s: Notifier - Mail
    • Labels:
      None
    • Environment:
      1.3.1, also seen with trunk at r748719

      Description

      After upgrading to 1.3.x, I'm getting notification emails with the subject line:

      [continuum] PREPARE BUILD SUCCESSFUL: $

      {projectScmRoot.scmRootAddress}

      Other than the subject, the notification looks the same as we used to get for normal scheduled builds in 1.2.x.

      The subject line seems to be hard coded in MailContinuumNotifier.java, and was added in r709300 in the merge from the transient state branch.

      Previously, the subject was configurable in
      ./apps/continuum/WEB-INF/classes/META-INF/plexus/application.xml
      with
      <subject-format>[continuum] BUILD ${state}: ${project.projectGroup.name} - ${project.name} - ${build.buildDefinition.description}</subject-format>
      .

      From continuum.log:
      2009-02-27 20:25:48,106 [pool-1-thread-4] WARN velocityComponent - org.apache.velocity.runtime.exception.ReferenceException: reference : template = subjectPattern [line 1,column 37] : ${projectScmRoot.scmRootAddress}

      is not a valid reference.
      2009-02-27 20:25:48,106 [pool-1-thread-4] INFO org.apache.maven.continuum.notification.mail.MailContinuumNotifier - Message Subject: '[continuum] PREPARE BUILD SUCCESSFUL: $

      {projectScmRoot.scmRootAddress}

      '.

      I'm less concerned about the 'not a valid reference' warning, since what I really want is for the subject line to be

      • configurable in plain text
      • the same as it was in 1.2.x

      Related thread:
      http://mail-archives.apache.org/mod_mbox/continuum-dev/200902.mbox/%3Cadba96190902261025o5f0f35cfk70554c62cafda630@mail.gmail.com%3E

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12948497 ] Default workflow, editable Closed status [ 12984378 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:12:18 UTC 2015 [ 1428268338676 ]
          Mark Thomas made changes -
          Workflow jira [ 12710754 ] Default workflow, editable Closed status [ 12740422 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:36:01 UTC 2015 [ 1428222961749 ]
          Wendy Smoak made changes -
          Link This issue is related to CONTINUUM-2117 [ CONTINUUM-2117 ]
          Wendy Smoak made changes -
          Link This issue relates to CONTINUUM-1929 [ CONTINUUM-1929 ]
          Maria Catherine Tan made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Wendy Smoak made changes -
          Affects Version/s 1.3.2 [ 14902 ]
          Assignee Maria Catherine Tan [ ctan ]
          Affects Version/s 1.3.1 [ 14741 ]
          Fix Version/s 1.3.2 [ 14902 ]
          Wendy Smoak made changes -
          Field Original Value New Value
          Affects Version/s 1.3.1 [ 14741 ]
          Affects Version/s 1.3.2 [ 14902 ]
          Wendy Smoak created issue -

            People

            • Assignee:
              Maria Catherine Tan
              Reporter:
              Wendy Smoak
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development