Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20324

Add 'no changes' parameter to CHANGES tokens

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      It'd be great if email-ext allowed to specify an alternative text if a CHANGE_... token is empty (i.e. no changes).

      Then I could add a notice if no changes are available to make it clear that nothing was changed:


      Changes:

      The following changes occurred since the last unstable build:

      There were no changes

      Build Log:

      blabla


      Otherwise, it'll just look like the following:


      Changes:

      The following changes occurred since the last unstable build:

      Build Log:

      blabla


      Example token:


      ${CHANGES_SINCE_LAST_UNSTABLE, reverse=true, default="<em>There were no changes.</em>"}
      

            jeffmaury Jeff MAURY
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: