jenkinsci / jenkinsci/subversion-plugin
[JENKINS-25825] Subversion plugin refuses to checkout branch at specific revision when it no longer exists in HEAD
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
When you create a branch, delete it and then try and get Jenkins to checkout the branch at a revision at which it did exist the validation fails and the checkout fails on build.
This is because the checkout command in CheckoutUpdater.java uses HEAD as a parameter instead of the revision given:
svnuc.doCheckout(location.getSVNURL(), local.getCanonicalFile(), SVNRevision.HEAD, r, svnDepth, true);
---
Originally reported by
alanm, imported from: Subversion plugin refuses to checkout branch at specific revision when it no longer exists in HEAD
jamesdumay
Raw content of original issue
When you create a branch, delete it and then try and get Jenkins to checkout the branch at a revision at which it did exist the validation fails and the checkout fails on build.
This is because the checkout command in CheckoutUpdater.java uses HEAD as a parameter instead of the revision given:
svnuc.doCheckout(location.getSVNURL(), local.getCanonicalFile(), SVNRevision.HEAD, r, svnDepth, true);
Contributor guide
Assessment
This issue has not been assessed yet.