You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2009/02/28 04:40:19 UTC

[jira] Created: (CONTINUUM-2102) Unable to configure subject line for email notifications

Unable to configure subject line for email notifications
--------------------------------------------------------

                 Key: CONTINUUM-2102
                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
             Project: Continuum
          Issue Type: Bug
          Components: Notifier - Mail
    Affects Versions: 1.3.1
         Environment: 1.3.1, also seen with trunk at r748719
            Reporter: Wendy Smoak
            Priority: Critical


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Maria Catherine Tan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167646#action_167646 ] 

Maria Catherine Tan commented on CONTINUUM-2102:
------------------------------------------------

For the successful 'prepare' notification, you can get it if alwaysSend is true or if the scmroot  previous state while preparing is an Error. The Prepare Build Error notification is configurable in the ui.

So if the prepare build failed because let's say the svn is down, and you configured to received notification when prepare build failed then you will receive a mail notification for that.  

I can remove the prepare build successful mail notification, since it seems like you'll get notification anyway during the build which also means the prepare build was successful.

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167626#action_167626 ] 

Wendy Smoak commented on CONTINUUM-2102:
----------------------------------------

Okay, after playing with this a bit more it seems like I get either the 'prepare' notification or the normal one, but not both.  Is that correct?

For example, if the scm url in the pom is incorrect, I get a 'PREPARE BUILD ERROR' message.  If I fix it and delete/re-add the project then I get only a 'BUILD SUCCESSFUL' message.



> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Maria Catherine Tan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167527#action_167527 ] 

Maria Catherine Tan commented on CONTINUUM-2102:
------------------------------------------------

Only the subject line for the mail notification of "Prepare build" is not configurable. 

Preparation of build, which includes cleaning of directory, checkout and update, was separated from the actual build. 
Any suggestion with the subject format?

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Maria Catherine Tan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maria Catherine Tan closed CONTINUUM-2102.
------------------------------------------

    Resolution: Fixed

Fixed in revision 751253

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Assignee: Maria Catherine Tan
>            Priority: Critical
>             Fix For: 1.3.2
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167914#action_167914 ] 

Wendy Smoak commented on CONTINUUM-2102:
----------------------------------------

Thanks!  I'd say go ahead and commit what you have, which makes the 'prepare build' subject line configurable... it sounds fine, it just needs to be documented.  

If the 'PREPARE BUILD SUCCESSFUL' notifications get too noisy or are considered redundant, we can consider removing them in a separate issue. 

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.2
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wendy Smoak updated CONTINUUM-2102:
-----------------------------------

    Affects Version/s:     (was: 1.3.1)
                       1.3.2

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.2
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167597#action_167597 ] 

Wendy Smoak commented on CONTINUUM-2102:
----------------------------------------

I don't understand why there would be two notifications for a single build.

I'll test it again, but it seemed to me the email I got was the normal build notification I'm used to, it just had this new hardcoded subject line.  Are you saying there _should_ be two?

I looked at the transient state issues CONTINUUM-1864 and CONTINUUM-1829 and didn't see adding a second notification mentioned there or in the threads linked from the issues.

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wendy Smoak updated CONTINUUM-2102:
-----------------------------------

             Assignee: Maria Catherine Tan
    Affects Version/s:     (was: 1.3.2)
                       1.3.1
        Fix Version/s: 1.3.2

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Assignee: Maria Catherine Tan
>            Priority: Critical
>             Fix For: 1.3.2
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CONTINUUM-2102) Unable to configure subject line for email notifications

Posted by "Maria Catherine Tan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=167549#action_167549 ] 

Maria Catherine Tan commented on CONTINUUM-2102:
------------------------------------------------

Here's what I did though I haven't committed it yet.

Both in MailContinuumNotifier and application.xml
(1) changed subjectFormat to buildSubjectFormat (use for actual build notification) 
(2) added prepareBuildSubjectFormat ( use for prepare build notification ) 

WDYT?

> Unable to configure subject line for email notifications
> --------------------------------------------------------
>
>                 Key: CONTINUUM-2102
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2102
>             Project: Continuum
>          Issue Type: Bug
>          Components: Notifier - Mail
>    Affects Versions: 1.3.1
>         Environment: 1.3.1, also seen with trunk at r748719
>            Reporter: Wendy Smoak
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira