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

build revision is wrong/confusing when last changed is different

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None

      If you go to for example hudson/myJob/build/100, and for that build the svn info of the directory it updates is:

      Revision: 43187
      Node Kind: directory
      Schedule: normal
      Last Changed Author: merge
      Last Changed Rev: 43183
      

      then the build page will show "Revision: 43183" which is VERY deceptive since SVN disagrees, because in the SVN info, "Revision" exists as a property and is newer. It should at least say "Last Changed Rev" if this is the revision it is displaying. Otherwise trying to figure out which changes were built can be very confusing.

      It is also confusing because while Hudson shows the last changed rev, it lists no changes on the build page:

      Revision: 43183
      No changes.
      

      I think the ideal solution would be to list both the Revision and Last Changed Revision when they are different, and make it clear that the "Changes" are based on the "Revision" and not "Last Changed Revision".

          [JENKINS-6746] build revision is wrong/confusing when last changed is different

          tigren zhang added a comment -

          Still have this problem with Subversion 1.43

          With the variable SVN_REVISION, I could only get the "Last Changed Rev" number, but I want to get the "Revisioin" number.

          Now our workaround is to use svnversion command to get the number, put it in a file and set env variable with the plug-in EnvInject

          Is it possible to add another env variable like "SVN_HEAD_REVISION"?

          Thanks,

          tigren zhang added a comment - Still have this problem with Subversion 1.43 With the variable SVN_REVISION, I could only get the "Last Changed Rev" number, but I want to get the "Revisioin" number. Now our workaround is to use svnversion command to get the number, put it in a file and set env variable with the plug-in EnvInject Is it possible to add another env variable like "SVN_HEAD_REVISION"? Thanks,

          Roger C. Pao added a comment -

          I would have preferred SVN_REVISION match svn info Revision: while SVN_LAST_CHANGED_REV match svn info Last Changed Rev: to more closely match svn info output.

          Roger C. Pao added a comment - I would have preferred SVN_REVISION match svn info Revision: while SVN_LAST_CHANGED_REV match svn info Last Changed Rev: to more closely match svn info output.

          Any update on this?

          Riccardo Pancotti added a comment - Any update on this?

            Unassigned Unassigned
            mcrooney mcrooney
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: