jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-2117

Expressions do not work in prepareBuildSubjectFormat

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.3.2 (Beta)
  • Fix Version/s: None
  • Component/s: Notifier - Mail
  • Labels:
    None
  • Complexity:
    Intermediate

Description

The subject line for the PREPARE BUILD notification in application.xml defaults to:

<prepareBuildSubjectFormat>[continuum] PREPARE BUILD ${state}: ${project.projectGroup.name}</prepareBuildSubjectFormat>

The ${state} expression is substituted correctly, but not ${project.projectGroup.name} (or any ${project.*} expressions I've tried.)

The continuum.log file shows:

2009-03-09 12:07:45,308 [pool-7-thread-1] INFO org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor - Ending prepare build
2009-03-09 12:07:45,358 [pool-7-thread-1] WARN velocityComponent - org.apache.velocity.runtime.exception.ReferenceException: reference : template = subjectPattern [line 1,column 37] : ${project.projectGroup.name} is not a valid reference.
2009-03-09 12:07:45,378 [pool-7-thread-1] INFO org.apache.maven.continuum.notification.mail.MailContinuumNotifier - Message Subject: '[continuum] PREPARE BUILD ERROR: ${project.projectGroup.name}'.

The same kind of expressions do work correctly in the regular build notification:

2009-03-09 12:09:54,833 [pool-1-thread-2] INFO org.apache.maven.continuum.notification.mail.MailContinuumNotifier - Message Subject: '[continuum] BUILD SUCCESSFUL: Multi Module Example - Multi Module Example - Default Maven 2 Build Definition'.

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. CONTINUUM-2355 {project.projectGroup.name} in prepare build notification subject

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. CONTINUUM-2102 Unable to configure subject line for email notifications

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jose Morales Martinez added a comment - 29/Mar/09 7:42 PM

Prepare build is for SCM (project group level). The variable 'project' is not defined in this scope. You can access to 'projectGroup' variable by means of 'projectScmRoot.projectGroup'. Should be changed 'project.projectGroup.name' to 'projectScmRoot.projectGroup.name' in default application.xml.

NOTE: Accesibles vars are projectScmRoot and state

Show
Jose Morales Martinez added a comment - 29/Mar/09 7:42 PM Prepare build is for SCM (project group level). The variable 'project' is not defined in this scope. You can access to 'projectGroup' variable by means of 'projectScmRoot.projectGroup'. Should be changed 'project.projectGroup.name' to 'projectScmRoot.projectGroup.name' in default application.xml. NOTE: Accesibles vars are projectScmRoot and state
Hide
Permalink
Wendy Smoak added a comment - 11/Sep/09 6:49 PM

Duplicated and fixed by CONTINUUM-2355

Show
Wendy Smoak added a comment - 11/Sep/09 6:49 PM Duplicated and fixed by CONTINUUM-2355

People

  • Assignee:
    Wendy Smoak
    Reporter:
    Wendy Smoak
Vote (1)
Watch (0)

Dates

  • Created:
    09/Mar/09 2:18 PM
    Updated:
    11/Sep/09 6:49 PM
    Resolved:
    11/Sep/09 6:49 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.