jenkinsci / jenkinsci/subversion-plugin
[JENKINS-18426] When repository URL contains variable causes checkout from wrong SVN path
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
When svn location path contains variable, then jenkins checkout the code from trunk.
This is the ulr configured in Jenkins for SVN location:
https://svn.mydomain.com/project/branches/build-${SOURCE_BUILD_NUMBER}
But instead checkout from specified branch "build-1.1.50.1-B100" runtime, it's checked from from /trunk.
The build log shows that checkout is from the expected branch, but checking the svn info on workspace claims the code comes from /trunk
- Piece of console log
Building on master in workspace /var/lib/jenkins/jobs/project-quality/workspace
Cleaning local Directory .
Checking out https://svn.mydomain.com/project/branches/build-1.1.50.1-B100 at revision '2013-06-20T10:10:44.030 +0300'
- svn info
root@jenkins2:/var/lib/jenkins/jobs/project-quality/workspace# svn info
Path: .
Working Copy Root Path: /var/lib/jenkins/jobs/project-quality/workspace
URL: https://svn.mydomain.com/project/trunk
Repository Root: https://svn.mydomain.com/project
Repository UUID: adda5579-93c7-304f-a113-a437aa8ac68b
Revision: 11227
Node Kind: directory
Schedule: normal
Last Changed Author: username
Last Changed Rev: 11224
Last Changed Date: 2013-06-20 09:33:38 +0300 (Thu, 20 Jun 2013)
---
Originally reported by georgi_georgiev, imported from: When repository URL contains variable causes checkout from wrong SVN path
Raw content of original issue
When svn location path contains variable, then jenkins checkout the code from trunk.
This is the ulr configured in Jenkins for SVN location:
https://svn.mydomain.com/project/branches/build-${SOURCE_BUILD_NUMBER}But instead checkout from specified branch "build-1.1.50.1-B100" runtime, it's checked from from /trunk.
The build log shows that checkout is from the expected branch, but checking the svn info on workspace claims the code comes from /trunk
- Piece of console log
Building on master in workspace /var/lib/jenkins/jobs/project-quality/workspace
Cleaning local Directory .
Checking out https://svn.mydomain.com/project/branches/build-1.1.50.1-B100 at revision '2013-06-20T10:10:44.030 +0300'
- svn info
root@jenkins2:/var/lib/jenkins/jobs/project-quality/workspace# svn info
Path: .
Working Copy Root Path: /var/lib/jenkins/jobs/project-quality/workspace
URL: https://svn.mydomain.com/project/trunk
Repository Root: https://svn.mydomain.com/project
Repository UUID: adda5579-93c7-304f-a113-a437aa8ac68b
Revision: 11227
Node Kind: directory
Schedule: normal
Last Changed Author: username
Last Changed Rev: 11224
Last Changed Date: 2013-06-20 09:33:38 +0300 (Thu, 20 Jun 2013)
environment
```
Ubuntu server 12.04
Jenkins 1.518
Subversin Plugin 1.50
```
Contributor guide
Assessment
This issue has not been assessed yet.