jenkinsci / jenkinsci/subversion-plugin

[JENKINS-54849] SVN_REVISION and/or SVN_REVISION_X not being set

Open
#1,497 2 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

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.

---
Originally reported by dave09cbank, imported from: SVN_REVISION and/or SVN_REVISION_X not being set


  • status: Open
  • priority: Minor
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 3
  • imported: 20251212-090250

Raw content of original issue

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.

environment

```
Jenkins v2.138.3

Subversion plugin 2.12.1

Connecting to VisualSVN repositoried

Windows OS (Win 10)

Freestyle project job
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.