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

SVN_REVISION varable is empty if URL contains "@Revision"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None
    • Jenkins 1.442
      Subversion plugin 1.37

      SVN_REVISION variable is not set if I specify revision (or keyword like HEAD) in URL (like @123).

          [JENKINS-12042] SVN_REVISION varable is empty if URL contains "@Revision"

          The issue has been fixed in 1.32. (JENKINS-10942)
          Could you post the output of 'env | grep SVN' with/without @Revision ?

          OHTAKE Tomohiro added a comment - The issue has been fixed in 1.32. ( JENKINS-10942 ) Could you post the output of 'env | grep SVN' with/without @Revision ?

          Output excerpt taken from a build shell script step for a non-decorated svn url:
          U .
          At revision 72666
          [workspace] $ /bin/sh -xe /tmp/hudson1315590806389520477.sh
          + env
          + grep SVN
          SVN_URL=http://urlpath
          SVN_REVISION=72603

          Then I add a string build parameter [REVISION] and modify the svn url to be in the form http://urlpath/@${REVISION}. For this test I set the value of my REVISION parameter to '71640'.

          U .
          At revision 71640
          no revision recorded for http://urlpath/ in the previous build
          [workspace] $ /bin/sh -xe /tmp/hudson6960655887912316261.sh
          + env
          + grep SVN

          The result is the same if I hardcode the revision number as part of the url rather than parameterize it.

          Environment: Jenkins 1.466, svn plugin 1.40.

          Let me know if there is any additional information I can provide.

          jonathan_w_brown added a comment - Output excerpt taken from a build shell script step for a non-decorated svn url: U . At revision 72666 [workspace] $ /bin/sh -xe /tmp/hudson1315590806389520477.sh + env + grep SVN SVN_URL= http://urlpath SVN_REVISION=72603 Then I add a string build parameter [REVISION] and modify the svn url to be in the form http://urlpath/@$ {REVISION}. For this test I set the value of my REVISION parameter to '71640'. U . At revision 71640 no revision recorded for http://urlpath/ in the previous build [workspace] $ /bin/sh -xe /tmp/hudson6960655887912316261.sh + env + grep SVN The result is the same if I hardcode the revision number as part of the url rather than parameterize it. Environment: Jenkins 1.466, svn plugin 1.40. Let me know if there is any additional information I can provide.

          Oleg Nenashev added a comment -

          Nothing to do in the core

          Oleg Nenashev added a comment - Nothing to do in the core

            Unassigned Unassigned
            pxantom Oleksandr Popov
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: