0
votes

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.

How can I get the SVN_REVISION number as environment variable or alternatively a simple solution to retrieve it in jenkins as a parameter?

Project type is FreeStyle project.

Edit:

Raised Issue with Jenkins here

1
Which version of the SVN plugin are you using?Pedro
@Pedro Im using Subversion Plugin 2.12.1Kartik150

1 Answers

1
votes

We ran into the same issue. Downgrade to 2.10.3, which seems to be the latest stable version.

For information, the versions after 2.10.3 but before 2.12.1 have another problem on our SVN server : the authentication fails.

Enjoy ;-)