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

SVN_REVISION and/or SVN_REVISION_X not being set

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Jenkins v2.138.3
      Subversion plugin 2.12.1
      Connecting to VisualSVN repositoried
      Windows OS (Win 10)
      Freestyle project job
    • Similar Issues:

      Description

      Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.

      I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.

      As suggested on stack overflow tried downgrading to subversion 2.10.3 but it still didnt work.

      https://stackoverflow.com/questions/53234867/svn-revision-variable-not-returning-checkout-revision-in-jenkins

      Additionally,
      After i downgraded SVNPlugin and then updated it again i now manage to get the SVN revision being set.

      However if i have an external set for the SVN repository i cannot access the external repository using SVN_REVISION_2
      SVN_REVISION_1 now returns the revision of teh actual repository.

        Attachments

          Issue Links

            Activity

            dave09cbank Kartik Rathore created issue -
            dave09cbank Kartik Rathore made changes -
            Field Original Value New Value
            Environment Jenkins v2.138.3
            Subversion plugin 2.12.1
            Connecting to VisualSVN repositoried
            Windows OS (Win 10)
            Jenkins v2.138.3
            Subversion plugin 2.12.1
            Connecting to VisualSVN repositoried
            Windows OS (Win 10)
            Freestyle project job
            dave09cbank Kartik Rathore made changes -
            Description Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.

            I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.

            As suggested on stack overflow tried downgrading to subversion 2.10.3 but it still didnt work.

            https://stackoverflow.com/questions/53234867/svn-revision-variable-not-returning-checkout-revision-in-jenkins
            Using Jenkins 2.138.3 and Subversion plugin on a windows machine. When doing a checkout from SVN server, SVN_REVISION environment variable isn't available as when trying to get the value all it return is empty string.

            I have tried to use ${SVN_REVISION} & ${SVN_REVISION_1} but none of them return any revision number.

            As suggested on stack overflow tried downgrading to subversion 2.10.3 but it still didnt work.

            https://stackoverflow.com/questions/53234867/svn-revision-variable-not-returning-checkout-revision-in-jenkins

            Additionally,
            After i downgraded SVNPlugin and then updated it again i now manage to get the SVN revision being set.

            However if i have an external set for the SVN repository i cannot access the external repository using SVN_REVISION_2
            SVN_REVISION_1 now returns the revision of teh actual repository.
            ifernandezcalvo Ivan Fernandez Calvo made changes -
            Assignee Ivan Fernandez Calvo [ ifernandezcalvo ]
            slide_o_mix Alex Earl made changes -
            Link This issue is related to JENKINS-54492 [ JENKINS-54492 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                dave09cbank Kartik Rathore
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: