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

Add 'no changes' parameter to CHANGES tokens

    XMLWordPrintable

Details

    Description

      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>"}
      

      Attachments

        Issue Links

          Activity

            danielbeck Daniel Beck created issue -
            slide_o_mix Alex Earl made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            slide_o_mix Alex Earl made changes -
            Link This issue duplicates JENKINS-16532 [ JENKINS-16532 ]
            slide_o_mix Alex Earl made changes -
            Resolution Duplicate [ 3 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            jeffmaury Jeff MAURY made changes -
            Assignee Alex Earl [ slide_o_mix ] Jeff MAURY [ jeffmaury ]

            Code changed in jenkins
            User: Jeff MAURY
            Path:
            src/main/java/hudson/plugins/emailext/plugins/content/AbstractChangesSinceContent.java
            src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContent.java
            src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContentTest.java
            src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastSuccessfulBuildContentTest.java
            src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastUnstableBuildContentTest.java
            http://jenkins-ci.org/commit/email-ext-plugin/bfaadca29e5b946d7e028c59044427b1748a6f20
            Log:
            Fix JENKINS-20324 - Add default parameter for CHANGES, CHANGES_SINCE_LAST_SUCCESS and CHANGES_SINCE_LAST_UNSTABLE tokens

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jeff MAURY Path: src/main/java/hudson/plugins/emailext/plugins/content/AbstractChangesSinceContent.java src/main/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContent.java src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastBuildContentTest.java src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastSuccessfulBuildContentTest.java src/test/java/hudson/plugins/emailext/plugins/content/ChangesSinceLastUnstableBuildContentTest.java http://jenkins-ci.org/commit/email-ext-plugin/bfaadca29e5b946d7e028c59044427b1748a6f20 Log: Fix JENKINS-20324 - Add default parameter for CHANGES, CHANGES_SINCE_LAST_SUCCESS and CHANGES_SINCE_LAST_UNSTABLE tokens
            sv00360113 srinivas varanasi made changes -
            Link This issue is blocking WEBSITE-14 [ WEBSITE-14 ]
            sv00360113 srinivas varanasi made changes -
            Link This issue is blocking WEBSITE-15 [ WEBSITE-15 ]
            rtyler R. Tyler Croy made changes -
            Link This issue is blocking WEBSITE-14 [ WEBSITE-14 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 151848 ] JNJira + In-Review [ 194117 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: