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

${CHANGES_SINCE_LAST_SUCCESS} no longer displays "No changes" when there are no new SCM changes

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: token-macro-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.23
      Email Extension Plugin 2.51
      Token Macro Plugin 2.0
      Git plugin 3.0.0
    • Similar Issues:

      Description

      I recently updated my plugins and I think one of them caused the emails to no longer display "No changes" then there are no new SCM changes in the build.

      In my case I am using Git.

      Here is our usual output config:
      ${CHANGES_SINCE_LAST_BUILD, showDependencies=true, format="\n[%r]\n\t%m\t\t%a - %d\n%p"}

      I tired using no attributes and it still did the same thing.

      I also tried using/changing the default attribute and it still did not show anything.

      It still properly displays the SCM changes when there are some to show.

        Attachments

        1. build.log
          18 kB
        2. build.log
          2 kB
        3. token-macro.hpi
          436 kB

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/test/java/org/jenkinsci/plugins/tokenmacro/impl/ChangesSinceLastSuccessfulBuildMacroTest.java
          http://jenkins-ci.org/commit/token-macro-plugin/f7b7652e63c7c7a0dbfdde71dd5f75a8d3aeefc0
          Log:
          Fix JENKINS-38668

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/test/java/org/jenkinsci/plugins/tokenmacro/impl/ChangesSinceLastSuccessfulBuildMacroTest.java http://jenkins-ci.org/commit/token-macro-plugin/f7b7652e63c7c7a0dbfdde71dd5f75a8d3aeefc0 Log: Fix JENKINS-38668
          Show
          slide_o_mix Alex Earl added a comment - Please try this HPI https://ci.jenkins.io/job/Plugins/job/token-macro-plugin/job/master/lastSuccessfulBuild/artifact/target/token-macro.hpi
          Hide
          tspencer3 Thomas Spencer added a comment -

          No changes!

          In a good way.

          The message is now appearing in the output like it used to.

          Thanks for looking into this.

          Show
          tspencer3 Thomas Spencer added a comment - No changes! In a good way. The message is now appearing in the output like it used to. Thanks for looking into this.
          Hide
          slide_o_mix Alex Earl added a comment -

          I'll put out a new release soon so you can have an official plugin. Thanks for filing the issue.

          Show
          slide_o_mix Alex Earl added a comment - I'll put out a new release soon so you can have an official plugin. Thanks for filing the issue.
          Hide
          slide_o_mix Alex Earl added a comment -

          Fixed in 2.1

          Show
          slide_o_mix Alex Earl added a comment - Fixed in 2.1

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              tspencer3 Thomas Spencer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: