jenkinsci / jenkinsci/subversion-plugin

[JENKINS-25825] Subversion plugin refuses to checkout branch at specific revision when it no longer exists in HEAD

Open
#1,180 5 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:critical resolution:unresolved
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


  • assignee: jamesdumay
  • status: In Review
  • priority: Critical
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 20251212-090250

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

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.