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

SVN_REVISION and/or SVN_REVISION_X not being set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • subversion-plugin
    • None
    • Jenkins v2.138.3
      Subversion plugin 2.12.1
      Connecting to VisualSVN repositoried
      Windows OS (Win 10)
      Freestyle project job

      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.

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

              Created:
              Updated: