jenkinsci / jenkinsci/subversion-plugin
[JENKINS-54849] SVN_REVISION and/or SVN_REVISION_X not being set
- 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.
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
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.
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
Assessment
This issue has not been assessed yet.